Add the id arg

This commit is contained in:
Raymond Feng 2013-07-22 09:57:55 -07:00
parent b7f7f71b15
commit 127fb32d02
1 changed files with 1 additions and 1 deletions

View File

@ -454,7 +454,7 @@ DataAccessObject.deleteById =
DataAccessObject.destroyById = function deleteById(id, cb) { DataAccessObject.destroyById = function deleteById(id, cb) {
if (stillConnecting(this.schema, this, arguments)) return; 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) { if ('function' === typeof cb) {
cb(err); cb(err);
} }