Merge pull request #250 from offlinehacker/embedsMany_deleted
Emit deleted event on delete for embedsMany relations
This commit is contained in:
commit
ce12db3e45
|
@ -2107,6 +2107,7 @@ EmbedsMany.prototype.destroyById = function (fkId, cb) {
|
|||
modelInstance.updateAttribute(propertyName,
|
||||
embeddedList, function(err) {
|
||||
cb(err);
|
||||
modelTo.emit('deleted', inst.id, inst.toJSON());
|
||||
});
|
||||
}
|
||||
} else if (typeof cb === 'function') {
|
||||
|
|
Loading…
Reference in New Issue