diff --git a/lib/dao.js b/lib/dao.js index ce3cad70..88e33edc 100644 --- a/lib/dao.js +++ b/lib/dao.js @@ -2080,7 +2080,7 @@ DataAccessObject.scope = function (name, query, targetClass, methods, options) { if (options && options.isStatic === false) { cls = cls.prototype; } - defineScope(cls, targetClass || cls, name, query, methods, options); + return defineScope(cls, targetClass || cls, name, query, methods, options); }; /*