From cea33afafeb13ce8b0fc4fd43e91ad4fa7481cf9 Mon Sep 17 00:00:00 2001 From: fantasticit Date: Tue, 11 Apr 2023 07:58:06 +0800 Subject: [PATCH] fix tserror --- packages/server/src/controllers/wiki.controller.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/server/src/controllers/wiki.controller.ts b/packages/server/src/controllers/wiki.controller.ts index 1fd5fecd..cec1868c 100644 --- a/packages/server/src/controllers/wiki.controller.ts +++ b/packages/server/src/controllers/wiki.controller.ts @@ -39,8 +39,8 @@ export class WikiController { @Get(WikiApiDefinition.getAllWikis.server) @HttpCode(HttpStatus.OK) @UseGuards(JwtGuard) - async getAllWikis(@Request() req, @Param('organizationId') organizationId, @Query() pagination: IPagination) { - return await this.wikiService.getAllWikis(req.user, organizationId, pagination); + async getAllWikis(@Request() req, @Param('organizationId') organizationId) { + return await this.wikiService.getAllWikis(req.user, organizationId); } /** @@ -53,8 +53,8 @@ export class WikiController { @Get(WikiApiDefinition.getOwnWikis.server) @HttpCode(HttpStatus.OK) @UseGuards(JwtGuard) - async getOwnWikis(@Request() req, @Param('organizationId') organizationId, @Query() pagination: IPagination) { - return await this.wikiService.getOwnWikis(req.user, organizationId, pagination); + async getOwnWikis(@Request() req, @Param('organizationId') organizationId) { + return await this.wikiService.getOwnWikis(req.user, organizationId); } /** @@ -67,8 +67,8 @@ export class WikiController { @Get(WikiApiDefinition.getJoinWikis.server) @HttpCode(HttpStatus.OK) @UseGuards(JwtGuard) - async getJoinWikis(@Request() req, @Param('organizationId') organizationId, @Query() pagination: IPagination) { - return await this.wikiService.getJoinWikis(req.user, organizationId, pagination); + async getJoinWikis(@Request() req, @Param('organizationId') organizationId) { + return await this.wikiService.getJoinWikis(req.user, organizationId); } /**