From e63d15aeb5776c04781e51220b586474a3af8d62 Mon Sep 17 00:00:00 2001 From: Patrick Perini Date: Fri, 22 May 2015 13:42:34 -0700 Subject: [PATCH] addressing #603 --- lib/relation-definition.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;