From bbce005d127f7748c3529b7b8b0e3b7075760a02 Mon Sep 17 00:00:00 2001 From: Fabien Franzen Date: Thu, 26 Mar 2015 15:39:26 +0100 Subject: [PATCH] Return scope object from DAO.scope --- lib/dao.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }; /*