This commit is contained in:
Patrick Perini 2015-05-22 13:42:34 -07:00
parent 5977c1f872
commit e63d15aeb5
1 changed files with 1 additions and 1 deletions

View File

@ -869,7 +869,7 @@ HasMany.prototype.destroyById = function (fkId, options, cb) {
if (err) {
return cb(err);
}
self.removeFromCache(inst[fkId]);
self.removeFromCache(fkId);
inst.destroy(options, cb);
});
return cb.promise;