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

Commit e7241676 by Mick Hansen

fix: t > options.transaction

1 parent ee2f6f0b
Showing with 1 additions and 1 deletions
...@@ -684,7 +684,7 @@ module.exports = (function() { ...@@ -684,7 +684,7 @@ module.exports = (function() {
var values = {}; var values = {};
values[include.association.foreignKey] = self.get(self.Model.primaryKeyAttribute, {raw: true}); values[include.association.foreignKey] = self.get(self.Model.primaryKeyAttribute, {raw: true});
values[include.association.otherKey] = instance.get(instance.Model.primaryKeyAttribute, {raw: true}); values[include.association.otherKey] = instance.get(instance.Model.primaryKeyAttribute, {raw: true});
return include.association.throughModel.create(values, {transaction: t, logging: console.log}); return include.association.throughModel.create(values, {transaction: options.transaction, logging: console.log});
}); });
} else { } else {
instance.set(include.association.identifier, self.get(self.Model.primaryKeyAttribute, {raw: true})); instance.set(include.association.identifier, self.get(self.Model.primaryKeyAttribute, {raw: true}));
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!