Explorar o código

Merge branch 'master' of http://git.cc-lotus.info/service-platform/service-auth

cheny %!s(int64=4) %!d(string=hai) anos
pai
achega
2736e7f628
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      app/service/user.js

+ 1 - 1
app/service/user.js

@@ -141,7 +141,7 @@ class UserService extends CrudService {
   }
 
   async finduserlist({ skip, limit, ...info }) {
-    const query = { ...info, $or: [{ role: '2' }, { role: '3' }, { role: '6' }] };
+    const query = { ...info, $or: [{ role: '4' }, { role: '5' }, { role: '6' }] };
     const total = await this.model.count(query);
     const data = await this.model.find(query).skip(Number(skip)).limit(Number(limit));
     return { data, total };