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

Commit 4f566ef8 by Mick Hansen

fix: use options.logging rather than console.log

1 parent e7241676
Showing with 1 additions and 1 deletions
......@@ -684,7 +684,7 @@ module.exports = (function() {
var values = {};
values[include.association.foreignKey] = self.get(self.Model.primaryKeyAttribute, {raw: true});
values[include.association.otherKey] = instance.get(instance.Model.primaryKeyAttribute, {raw: true});
return include.association.throughModel.create(values, {transaction: options.transaction, logging: console.log});
return include.association.throughModel.create(values, {transaction: options.transaction, logging: options.logging});
});
} else {
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!