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

Commit 78f218ef by Mick Hansen

Merge pull request #1388 from jValdron/master

Deep cloning the findOptions in findAndCountAll
2 parents 5677d65f eaa76e68
Showing with 1 additions and 1 deletions
......@@ -614,7 +614,7 @@ module.exports = (function() {
DAOFactory.prototype.findAndCountAll = function(findOptions, queryOptions) {
var self = this
// no limit, offset, order, attributes for the options given to count()
, countOptions = Utils._.omit(findOptions || {}, ['offset', 'limit', 'order', 'attributes'])
, countOptions = Utils._.omit(findOptions ? Utils._.merge({}, findOptions) : {}, ['offset', 'limit', 'order', 'attributes'])
return new Utils.CustomEventEmitter(function (emitter) {
var emit = {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!