From 9137c72f56570196e9c5dd16e431a02be522a2e9 Mon Sep 17 00:00:00 2001 From: unakb Date: Wed, 11 Dec 2024 10:10:02 +0000 Subject: [PATCH] Update case.service.ts --- .../backend/src/app/modules/case/case.service.ts | 13 +++++-------- 1 file changed, 5 insertions(+), 8 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 5e701d6fa2a7..b9980ed191fd 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 @@ -846,8 +846,10 @@ export class CaseService { this.getDeliverProsecutorToCourtMessages(theCase, user), ) } - - private addMessagesForSignedCourtRecordToQueue(theCase: Case, user: TUser) { + private addMessagesForSignedCourtRecordToQueue( + theCase: Case, + user: TUser, + ): Promise { const messages = [] if ( @@ -861,13 +863,8 @@ export class CaseService { }) } - if (messages && messages.length > 0) { - return this.messageService.sendMessagesToQueue(messages) - } - - return + return this.messageService.sendMessagesToQueue(messages) } - private addMessagesForSignedRulingToQueue( theCase: Case, user: TUser,