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

Commit 6cc05eaf by Mick Hansen Committed by Jan Aagaard Meier

refactor find & argsArePrimaryKeys a bit

1 parent 4e941ab0
Showing with 1 additions and 1 deletions
...@@ -130,7 +130,7 @@ module.exports = (function() { ...@@ -130,7 +130,7 @@ module.exports = (function() {
// options is not a hash but an id // options is not a hash but an id
if(typeof options === 'number') { if(typeof options === 'number') {
options = { where: options } options = { where: options }
} else if (!Utils._.isEmpty(primaryKeys) && Utils.argsArePrimaryKeys(arguments, primaryKeys)) { } else if (!Utils._.size(primaryKeys) && Utils.argsArePrimaryKeys(arguments, primaryKeys)) {
var where = {} var where = {}
, self = this , self = this
, keys = Utils._.keys(primaryKeys) , keys = Utils._.keys(primaryKeys)
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!