fix: uncaught errors in PaymentService (#16104)

* fix: uncaught errors in PaymentService

* fix: uncaught errors in WebhookService (#16105)

* fix: uncaught errors in WebhookService

* fix: uncaught errors in sendPayload (#16106)

---------

Co-authored-by: Udit Takkar <[email protected]>
This commit is contained in:
Omar LópezandUdit Takkar authored and GitHub committed 2024-08-07 10:56:17 +00:00
1 parent e5887ec0fa
commit 25970e72de
3 files changed
+8 -4

No files matched your search

@@ -17,7 +17,7 @@ export class WebhookService {
return this;
})() as unknown as WebhookService;
}
async getWebhooks() {
getWebhooks() {
return this.webhooks;
}
async sendPayload(payload: Parameters<typeof sendOrSchedulePayload>[4]) {
@@ -1,4 +1,4 @@
import type { Webhook } from "@prisma/client";
import type { Payment, Webhook } from "@prisma/client";
import { createHmac } from "crypto";
import { compile } from "handlebars";
@@ -60,6 +60,7 @@ export type WebhookDataType = CalendarEvent &
createdAt: string;
downloadLink?: string;
paymentId?: number;
paymentData?: Payment;
};
function addUTCOffset(