feat(notification): Handle long running transaction and add status support (#8900)

RESOLVES FRMW-2110
RESOLVES FRMW-2095

**What**
- Fix notification module to not retain transactions open while sending notification
- Add support for notification status [success, pending, failure]
This commit is contained in:
Adrien de Peretti authored and GitHub committed 2024-09-01 08:01:47 +00:00
1 parent dbb10ff051
commit 99461e24ab
11 files changed
+265 -62

No files matched your search

@@ -7,6 +7,9 @@ export class NotificationProviderServiceFixtures extends AbstractNotificationPro
async send(
notification: NotificationTypes.ProviderSendNotificationDTO
): Promise<NotificationTypes.ProviderSendNotificationResultsDTO> {
if (notification.to === "fail") {
throw new Error("Failed to send notification")
}
return { id: "external_id" }
}
}