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

Commit 52322ba3 by Jan Aagaard Meier

Merge pull request #5345 from yjwong/master

Fixes issue #5344: Replaced _.cloneDeep with _.cloneDeepWith.
2 parents bd215e9a 3194f2e0
Showing with 1 additions and 1 deletions
...@@ -1649,7 +1649,7 @@ Model.prototype.findAndCount = function(options) { ...@@ -1649,7 +1649,7 @@ Model.prototype.findAndCount = function(options) {
conformOptions(countOptions, this); conformOptions(countOptions, this);
if (countOptions.include) { if (countOptions.include) {
countOptions.include = _.cloneDeep(countOptions.include, function (element) { countOptions.include = _.cloneDeepWith(countOptions.include, function (element) {
if (element instanceof Model) return element; if (element instanceof Model) return element;
if (element instanceof Association) return element; if (element instanceof Association) return element;
return undefined; return undefined;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!