Skip to content

Commit

Permalink
Update case.service.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
unakb committed Dec 11, 2024
1 parent d056354 commit 9137c72
Showing 1 changed file with 5 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -846,8 +846,10 @@ export class CaseService {
this.getDeliverProsecutorToCourtMessages(theCase, user),
)
}

private addMessagesForSignedCourtRecordToQueue(theCase: Case, user: TUser) {
private addMessagesForSignedCourtRecordToQueue(
theCase: Case,
user: TUser,
): Promise<void> {
const messages = []

if (
Expand All @@ -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,
Expand Down

0 comments on commit 9137c72

Please sign in to comment.