Skip to content

Commit

Permalink
fix(model): sql.js not returning model on creations
Browse files Browse the repository at this point in the history
  • Loading branch information
citycide committed Feb 4, 2017
1 parent 6c8acc1 commit 06df94f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ class Trilogy {
} else {
return runQuery(this, check, true).then(exists => {
if (exists) return model
return runQuery(this, query)
return runQuery(this, query).then(() => model)
})
}
}
Expand Down

0 comments on commit 06df94f

Please sign in to comment.