diff --git a/lib/dao.js b/lib/dao.js index 27688a57..252fb7fe 100644 --- a/lib/dao.js +++ b/lib/dao.js @@ -1022,7 +1022,7 @@ DataAccessObject.remove = DataAccessObject.deleteAll = DataAccessObject.destroyA } function done(err, data) { - if (err) return cb(er); + if (err) return cb(err); if (options.notify === false) { return cb(err, data);