server: fix delete comment

This commit is contained in:
fantasticit 2022-06-03 20:56:16 +08:00
parent a71a31046c
commit da9847e5b3
1 changed files with 1 additions and 2 deletions

View File

@ -198,8 +198,7 @@ export class CommentService {
throw new HttpException('您不是评论创建者,无法删除', HttpStatus.FORBIDDEN);
}
const doc = await this.documentService.findById(data.documentId);
const wikiUsersAuth = await this.documentService.getDocUsers(user, data.documentId);
const wikiUsersAuth = await this.documentService.getDocUsersWithoutAuthCheck(user, data.documentId);
await Promise.all(
wikiUsersAuth.map(async (userAuth) => {
await this.messageService.notify(userAuth.user, {