From 127fb32d02a0ef2c34f2036b0d98773b2172a996 Mon Sep 17 00:00:00 2001 From: Raymond Feng Date: Mon, 22 Jul 2013 09:57:55 -0700 Subject: [PATCH] Add the id arg --- lib/dao.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }