Skip to content

Commit

Permalink
Merge pull request #152 from dmahajan980/delete-endpoint
Browse files Browse the repository at this point in the history
Fixed DELETE /instances/{instancesId} endpoint
  • Loading branch information
Yo Yehudi authored Mar 13, 2020
2 parents ed303b7 + 8e27092 commit a903fc9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion routes/instances.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ router.delete('/:id', passport.authenticate('basic', {session: false}), function
// Build the API Response
let api_response = {};
api_response.statusCode = 200;
n_removed = info['result']['n'];
n_removed = info['n'];
api_response.message = 'Instance Successfully Deleted';
if (n_removed === 0){
api_response.statusCode = 404;
Expand Down

0 comments on commit a903fc9

Please sign in to comment.