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

Commit 0d72ea15 by festo

Fix recursively inject 'where' with defaultScope and paranoid:true for sequelize/sequelize#4456

1 parent c0bcf5ce
Showing with 2 additions and 0 deletions
......@@ -2541,6 +2541,8 @@ Model.prototype.$getDefaultTimestamp = function(attr) {
// Inject current scope into options. Includes should have been conformed (conformOptions) before calling this
Model.$injectScope = function (scope, options) {
scope = optClone(scope);
var filteredScope = _.omit(scope, 'include'); // Includes need special treatment
_.defaults(options, filteredScope);
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!