Skip to content

Commit

Permalink
fix: 获取协作者列表报错
Browse files Browse the repository at this point in the history
  • Loading branch information
Mereithhh committed Sep 7, 2022
1 parent bcbf7e6 commit 33a1501
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/server/src/provider/user/user.provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,12 +114,12 @@ export class UserProvider {
if (isList) {
return await this.userModel.find(
{ type: 'collaborator' },
{ id: 1, name: 1, nickname: 1, __v: 0, _id: 0 },
{ id: 1, name: 1, nickname: 1, _id: 0 },
);
}
return await this.userModel.find(
{ type: 'collaborator' },
{ salt: 0, password: 0, __v: 0, _id: 0 },
{ salt: 0, password: 0, _id: 0 },
);
}

Expand Down

0 comments on commit 33a1501

Please sign in to comment.