Merge pull request #604 from atomic-labs/master

addressing #603
This commit is contained in:
Raymond Feng 2015-05-28 14:35:58 -07:00
commit f789e2abfc
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;