diff --git a/lib/relation-definition.js b/lib/relation-definition.js index 3b574331..5fe8af3d 100644 --- a/lib/relation-definition.js +++ b/lib/relation-definition.js @@ -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;