不要怂,就是干,撸起袖子干!

Commit a8079153 by Jan Scheurer

Move commit 2afceddc to master branch

1 parent 0a19db54
Showing with 2 additions and 2 deletions
......@@ -110,8 +110,8 @@ module.exports = (function() {
attributes: Utils._.defaults({}, throughAttributes, defaultAttributes)
};
changedAssociation.where[self.association.identifier] = self.instance[self.association.identifier] || self.instance.id;
changedAssociation.where[foreignIdentifier] = newObj[foreignIdentifier] || newObj.id;
changedAssociation.where[self.association.identifier] = self.instance[sourceKeys[0]] || self.instance.id;
changedAssociation.where[foreignIdentifier] = newObj[targetKeys[0]] || newObj.id;
if (Object.keys(changedAssociation.attributes).length) {
changedAssociations.push(changedAssociation);
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!