From a6025200fea80caa2a78aef38af4e343468f3a01 Mon Sep 17 00:00:00 2001 From: Ihar Date: Tue, 30 Apr 2024 22:31:58 +0500 Subject: [PATCH] hotfix: remove cache for contract routes --- api-gateway/src/api/service/contract.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/api-gateway/src/api/service/contract.ts b/api-gateway/src/api/service/contract.ts index ee233c7434..e5317b459f 100644 --- a/api-gateway/src/api/service/contract.ts +++ b/api-gateway/src/api/service/contract.ts @@ -392,7 +392,7 @@ export class ContractsApi { type: InternalServerErrorDTO, }) @HttpCode(HttpStatus.OK) - @UseCache({ isExpress: true }) + // @UseCache({ isExpress: true }) async getWipeRequests(@Req() req, @Response() res): Promise { await checkPermission(UserRole.STANDARD_REGISTRY)(req.user); try { @@ -1116,7 +1116,7 @@ export class ContractsApi { type: InternalServerErrorDTO, }) @HttpCode(HttpStatus.OK) - @UseCache({ isExpress: true }) + // @UseCache({ isExpress: true }) async getRetireRequests(@Req() req, @Response() res): Promise { await checkPermission( UserRole.STANDARD_REGISTRY, @@ -1206,7 +1206,7 @@ export class ContractsApi { type: InternalServerErrorDTO, }) @HttpCode(HttpStatus.OK) - @UseCache({ isExpress: true }) + // @UseCache({ isExpress: true }) async getRetirePools(@Req() req, @Response() res): Promise { await checkPermission( UserRole.STANDARD_REGISTRY, @@ -1794,7 +1794,7 @@ export class ContractsApi { type: InternalServerErrorDTO, }) @HttpCode(HttpStatus.OK) - @UseCache({ isExpress: true }) + // @UseCache({ isExpress: true }) async getRetireVCs(@Req() req, @Response() res): Promise { await checkPermission( UserRole.STANDARD_REGISTRY,