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

Commit e08e39c7 by joshm

attributes should be reset when doing findAndCountAll

1 parent 74f3420d
Showing with 3 additions and 2 deletions
...@@ -356,11 +356,12 @@ module.exports = (function() { ...@@ -356,11 +356,12 @@ module.exports = (function() {
var self = this var self = this
, opts = Utils._.cloneDeep(options) , opts = Utils._.cloneDeep(options)
, copts = Utils._.extend({}, Utils._.cloneDeep(options) || {}, { , copts = Utils._.extend({}, Utils._.cloneDeep(options) || {}, {
// no limit, offset, order or include for the options given to count() // no limit, offset, order, attributes or include for the options given to count()
offset : 0, offset : 0,
limit : 0, limit : 0,
order : null, order : null,
include : null include : null,
attributes: []
}) })
return new Utils.CustomEventEmitter(function (emitter) { return new Utils.CustomEventEmitter(function (emitter) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!