commit
f789e2abfc
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue