Merge pull request #539 from fabien/fix/tiny-return-scope
Return scope object from DAO.scope
This commit is contained in:
commit
c340f416b1
|
@ -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);
|
||||
};
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in New Issue