diff --git a/lib/dao.js b/lib/dao.js index 964c8be9..257177b3 100644 --- a/lib/dao.js +++ b/lib/dao.js @@ -2246,9 +2246,10 @@ DataAccessObject.prototype.updateAttributes = function updateAttributes(data, op var err = new Error('id property (' + idName + ') ' + 'cannot be updated from ' + inst[idName] + ' to ' + data[idName]); err.statusCode = 400; - return process.nextTick(function() { + process.nextTick(function() { cb(err); }); + return cb.promise; } }