Skip to content

Commit

Permalink
Bumps parse to 1.9.0
Browse files Browse the repository at this point in the history
  • Loading branch information
flovilmart committed Jul 8, 2016
1 parent 4bf7752 commit e0cbd0b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"mime": "1.3.4",
"mongodb": "2.1.18",
"multer": "1.1.0",
"parse": "1.8.5",
"parse": "1.9.0",
"parse-server-fs-adapter": "1.0.0",
"parse-server-push-adapter": "1.0.4",
"parse-server-s3-adapter": "1.0.3",
Expand Down
6 changes: 1 addition & 5 deletions src/RestWrite.js
Original file line number Diff line number Diff line change
Expand Up @@ -887,11 +887,7 @@ function updateResponseWithData(response, data) {
Object.keys(data).forEach(fieldName => {
let dataValue = data[fieldName];
let responseValue = response[fieldName];
if (dataValue && dataValue.__op === 'Delete') {
response[fieldName] = undefined;
} else {
response[fieldName] = responseValue || dataValue;
}
response[fieldName] = responseValue || dataValue;
});
return response;
}
Expand Down

0 comments on commit e0cbd0b

Please sign in to comment.