feat: upgrade mongoose

Signed-off-by: Innei <tukon479@gmail.com>
This commit is contained in:
Innei
2023-02-03 22:33:02 +08:00
parent 1a6164f919
commit 42e8037753
20 changed files with 1114 additions and 884 deletions

View File

@@ -74,7 +74,7 @@ export class CommentController {
@IsMaster() isMaster: boolean,
) {
const { id } = params
const data = await this.commentService.model
const data: CommentModel = await this.commentService.model
.findOne({
_id: id,
})
@@ -87,6 +87,7 @@ export class CommentController {
if (data.isWhispers && !isMaster) {
throw new CannotFindException()
}
await this.commentService.replaceMasterAvatarUrl([data])
return data
}