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

Commit ff4f5c11 by Mick Hansen

fix(model#find): bypass a possible overloaded model#findAll

1 parent 2965c048
Showing with 2 additions and 1 deletions
......@@ -798,7 +798,8 @@ module.exports = (function() {
options.limit = 1;
}
return this.findAll(options, Utils._.defaults({
// Bypass a possible overloaded findAll.
return Model.prototype.findAll.call(this, options, Utils._.defaults({
plain: true
}, queryOptions || {}));
};
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!