diff --git a/lib/dao.js b/lib/dao.js index 3dc95196..7f1f940e 100644 --- a/lib/dao.js +++ b/lib/dao.js @@ -454,7 +454,7 @@ DataAccessObject.deleteById = DataAccessObject.destroyById = function deleteById(id, cb) { if (stillConnecting(this.schema, this, arguments)) return; - this.schema.adapter.destroy(this.modelName, function (err) { + this.schema.adapter.destroy(this.modelName, id, function (err) { if ('function' === typeof cb) { cb(err); }