Skip to content

Commit a9ae622

Browse files
agbilotia1998mariobehling
authored andcommitted
Adds support to both Old and New APIs (#1765)
1 parent c810b79 commit a9ae622

File tree

7 files changed

+997
-15
lines changed

7 files changed

+997
-15
lines changed

src/backend/dist.js

+1-4
Original file line numberDiff line numberDiff line change
@@ -113,10 +113,8 @@ const downloadJsonFromEventyay = function(appPath, endpoint, jsonFile, cb) {
113113
console.log(err);
114114
return cb(err);
115115
}
116-
var json = JSON.parse(body);
117116

118-
new JSONAPIDeserializer().deserialize(json, function(err, data) {
119-
fs.writeFile(fileName, JSON.stringify(data), 'utf-8', function(err) {
117+
fs.writeFile(fileName, JSON.parse(JSON.stringify(response.body)), 'utf-8', function(err) {
120118
if(err) {
121119
console.log(err);
122120
return cb(err);
@@ -125,7 +123,6 @@ const downloadJsonFromEventyay = function(appPath, endpoint, jsonFile, cb) {
125123
});
126124
});
127125

128-
});
129126
};
130127

131128
var extensionChange = function(image) {

0 commit comments

Comments
 (0)