Add the id arg
This commit is contained in:
parent
b7f7f71b15
commit
127fb32d02
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue