From de60280547ec06f0fc87a29541aaeb5553773186 Mon Sep 17 00:00:00 2001 From: unakb Date: Thu, 9 Jan 2025 11:43:07 +0000 Subject: [PATCH] Comment out subpoena revocation message to police --- .../src/app/modules/case/case.service.ts | 29 ++++++++++--------- 1 file changed, 15 insertions(+), 14 deletions(-) diff --git a/apps/judicial-system/backend/src/app/modules/case/case.service.ts b/apps/judicial-system/backend/src/app/modules/case/case.service.ts index d266510204bb..c7fd79cf6e56 100644 --- a/apps/judicial-system/backend/src/app/modules/case/case.service.ts +++ b/apps/judicial-system/backend/src/app/modules/case/case.service.ts @@ -1095,20 +1095,21 @@ export class CaseService { }) } - const subpoenasToRevoke = await this.subpoenaService.findByCaseId( - theCase.id, - ) - - if (subpoenasToRevoke?.length > 0) { - messages.push( - ...subpoenasToRevoke.map((subpoena) => ({ - type: MessageType.DELIVERY_TO_POLICE_SUBPOENA_REVOCATION, - user, - caseId: theCase.id, - elementId: [subpoena.defendantId, subpoena.id], - })), - ) - } + // Commented out temporarily because police endpoint is not ready to receive revocation + // const subpoenasToRevoke = await this.subpoenaService.findByCaseId( + // theCase.id, + // ) + + // if (subpoenasToRevoke?.length > 0) { + // messages.push( + // ...subpoenasToRevoke.map((subpoena) => ({ + // type: MessageType.DELIVERY_TO_POLICE_SUBPOENA_REVOCATION, + // user, + // caseId: theCase.id, + // elementId: [subpoena.defendantId, subpoena.id], + // })), + // ) + // } return this.messageService.sendMessagesToQueue(messages) }