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) {
|
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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue