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

Commit 35b9558f by Mick Hansen

fix(model): remove limit from findById

1 parent b160a0c2
Showing with 0 additions and 2 deletions
......@@ -1432,8 +1432,6 @@ Model.prototype.findById = function(param, options) {
throw new Error('Argument passed to findById is invalid: '+param);
}
options.limit = 1;
// Bypass a possible overloaded findAll.
return Model.prototype.findAll.call(this, _.defaults(options, {
plain: true
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!