(@CurrentAuth() auth: AuthContext, @Param('id') id: string)
| 84 | @Roles('ADMIN') |
| 85 | @ApiOkResponse({ type: ApiKeyResponseDto }) |
| 86 | async revoke(@CurrentAuth() auth: AuthContext, @Param('id') id: string) { |
| 87 | const apiKey = await this.apiKeysService.update(auth, id, { isActive: false }); |
| 88 | return ApiKeyResponseDto.create(apiKey); |
| 89 | } |
| 90 | |
| 91 | @Delete(':id') |
| 92 | @Roles('ADMIN') |
no test coverage detected