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

Commit 9f769203 by Mathieu Amiot

Bugfix for condition and code style issues

1 parent a4a83f26
Showing with 3 additions and 3 deletions
...@@ -821,9 +821,9 @@ module.exports = (function() { ...@@ -821,9 +821,9 @@ module.exports = (function() {
prepend = true prepend = true
if (Utils.isHash(smth)) { if (Utils.isHash(smth)) {
if (!prepend) if (prepend) {
smth = Utils.prependTableNameToHash(tableName, smth) smth = Utils.prependTableNameToHash(tableName, smth)
}
result = this.hashToWhereConditions(smth, factory, options) result = this.hashToWhereConditions(smth, factory, options)
} else if (typeof smth === 'number') { } else if (typeof smth === 'number') {
var primaryKeys = !!factory ? Object.keys(factory.primaryKeys) : [] var primaryKeys = !!factory ? Object.keys(factory.primaryKeys) : []
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!