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

Commit d7a26747 by Mick Hansen

style

1 parent 332d4c9b
Showing with 3 additions and 1 deletions
...@@ -86,7 +86,9 @@ module.exports = (function() { ...@@ -86,7 +86,9 @@ module.exports = (function() {
* If we are double linked, and through is either default or a string, we create the through model and set it on both associations * If we are double linked, and through is either default or a string, we create the through model and set it on both associations
*/ */
if (this.doubleLinked) { if (this.doubleLinked) {
if (this.through === true) this.through = this.combinedTableName if (this.through === true) {
this.through = this.combinedTableName
}
if (typeof this.through === "string") { if (typeof this.through === "string") {
this.through = this.sequelize.define(this.through, {}, _.extend(this.options, { this.through = this.sequelize.define(this.through, {}, _.extend(this.options, {
tableName: this.through tableName: this.through
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!