mirror of https://github.com/fantasticit/think.git
Merge pull request #244 from fantasticit/bugfix/20230409
This commit is contained in:
commit
91b303121b
|
@ -39,8 +39,8 @@ export class WikiController {
|
||||||
@Get(WikiApiDefinition.getAllWikis.server)
|
@Get(WikiApiDefinition.getAllWikis.server)
|
||||||
@HttpCode(HttpStatus.OK)
|
@HttpCode(HttpStatus.OK)
|
||||||
@UseGuards(JwtGuard)
|
@UseGuards(JwtGuard)
|
||||||
async getAllWikis(@Request() req, @Param('organizationId') organizationId, @Query() pagination: IPagination) {
|
async getAllWikis(@Request() req, @Param('organizationId') organizationId) {
|
||||||
return await this.wikiService.getAllWikis(req.user, organizationId, pagination);
|
return await this.wikiService.getAllWikis(req.user, organizationId);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -53,8 +53,8 @@ export class WikiController {
|
||||||
@Get(WikiApiDefinition.getOwnWikis.server)
|
@Get(WikiApiDefinition.getOwnWikis.server)
|
||||||
@HttpCode(HttpStatus.OK)
|
@HttpCode(HttpStatus.OK)
|
||||||
@UseGuards(JwtGuard)
|
@UseGuards(JwtGuard)
|
||||||
async getOwnWikis(@Request() req, @Param('organizationId') organizationId, @Query() pagination: IPagination) {
|
async getOwnWikis(@Request() req, @Param('organizationId') organizationId) {
|
||||||
return await this.wikiService.getOwnWikis(req.user, organizationId, pagination);
|
return await this.wikiService.getOwnWikis(req.user, organizationId);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -67,8 +67,8 @@ export class WikiController {
|
||||||
@Get(WikiApiDefinition.getJoinWikis.server)
|
@Get(WikiApiDefinition.getJoinWikis.server)
|
||||||
@HttpCode(HttpStatus.OK)
|
@HttpCode(HttpStatus.OK)
|
||||||
@UseGuards(JwtGuard)
|
@UseGuards(JwtGuard)
|
||||||
async getJoinWikis(@Request() req, @Param('organizationId') organizationId, @Query() pagination: IPagination) {
|
async getJoinWikis(@Request() req, @Param('organizationId') organizationId) {
|
||||||
return await this.wikiService.getJoinWikis(req.user, organizationId, pagination);
|
return await this.wikiService.getJoinWikis(req.user, organizationId);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue