hoàn thành tích hợp FSRS
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
--- apps/server/src/core/page/page.controller.ts
|
||||
+++ apps/server/src/core/page/page.controller.ts
|
||||
@@ -650,7 +650,8 @@
|
||||
@HttpCode(HttpStatus.OK)
|
||||
@Post('review')
|
||||
- async review(@Body() dto: PageReviewDto, @AuthUser() user: User) {
|
||||
+ async review(@Body() dto: PageReviewDto) {
|
||||
const page = await this.pageRepo.findById(dto.pageId);
|
||||
if (!page) {
|
||||
throw new NotFoundException('Page not found');
|
||||
}
|
||||
-
|
||||
- await this.pageAccessService.validateCanView(page, user);
|
||||
|
||||
return this.pageService.review(dto.pageId, dto.quality);
|
||||
}
|
||||
Reference in New Issue
Block a user