|
@@ -23,12 +23,12 @@ class UserService extends CrudService {
|
|
|
}
|
|
|
let res = await this.model.find(query, '+passwd', newoptions).exec();
|
|
|
res = JSON.parse(JSON.stringify(res));
|
|
|
- for (const user of res) {
|
|
|
- if (user) {
|
|
|
- const { passwd } = user;
|
|
|
- user.passwd = passwd.secret;
|
|
|
- }
|
|
|
- }
|
|
|
+ // for (const user of res) {
|
|
|
+ // if (user) {
|
|
|
+ // const { passwd } = user;
|
|
|
+ // user.passwd = passwd.secret;
|
|
|
+ // }
|
|
|
+ // }
|
|
|
return res;
|
|
|
}
|
|
|
async count({ name, ...info }) {
|