feat: catch exceptions link attachment service

This commit is contained in:
Ahmed Bouhuolia
2024-05-29 22:15:31 +02:00
parent 6e50de1d28
commit 308a4f62ae
13 changed files with 53 additions and 34 deletions

View File

@@ -96,6 +96,7 @@ export class AttachmentsOnCreditNote {
tenantId,
creditNoteEditDTO,
oldCreditNote,
trx,
}: ICreditNoteEditedPayload) {
const keys = creditNoteEditDTO.attachments?.map(
(attachment) => attachment.key
@@ -104,7 +105,8 @@ export class AttachmentsOnCreditNote {
tenantId,
keys,
'CreditNote',
oldCreditNote.id
oldCreditNote.id,
trx
);
}