Skip to content

Commit

Permalink
Fix removal of user object when calling User.delete
Browse files Browse the repository at this point in the history
  • Loading branch information
Razvan Botea committed Apr 28, 2016
1 parent 3752524 commit 5a5aabf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/User.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,9 @@ User.delete = function(id, appId, callback) {
callback1();
},
function(callback1) {
Application.datasource.dataStorage.deleteObjects([id], function(errs) {
var usrObj = {};
usrObj[id] = 'user';
Application.datasource.dataStorage.deleteObjects(usrObj, function(errs) {
callback1(errs && errs.length > 1 ? errs[0] : null);
});
},
Expand Down

0 comments on commit 5a5aabf

Please sign in to comment.