diff --git a/lib/dao.js b/lib/dao.js index 2a9b9734..42a4b9dc 100644 --- a/lib/dao.js +++ b/lib/dao.js @@ -89,7 +89,7 @@ DataAccessObject.defaultScope = function(target, inst) { DataAccessObject.applyScope = function(query, inst) { var scope = this.defaultScope(query, inst) || {}; if (typeof scope === 'object') { - mergeQuery(query, scope || {}, this.definition.settings.scoping); + mergeQuery(query, scope || {}, this.definition.settings.scope); } };