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

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() {
prepend = true
if (Utils.isHash(smth)) {
if (!prepend)
smth = Utils.prependTableNameToHash(tableName, smth)
if (prepend) {
smth = Utils.prependTableNameToHash(tableName, smth)
}
result = this.hashToWhereConditions(smth, factory, options)
} else if (typeof smth === 'number') {
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!