refactor: async constructor is an anti-pattern, use init instead (#21785)
This commit is contained in:
1 parent
74234b4ed1
commit
86912e0cbc
5 files changed
+39
-28
No files matched your search
@@ -129,7 +129,7 @@ export const paymentsRouter = router({
|
||||
const userId = ctx.user.id || 0;
|
||||
const orgId = await getOrgIdFromMemberOrTeamId({ memberId: userId });
|
||||
const eventTypeId = booking.eventTypeId || 0;
|
||||
const webhooks = await new WebhookService({
|
||||
const webhooks = await WebhookService.init({
|
||||
userId,
|
||||
eventTypeId,
|
||||
triggerEvent: WebhookTriggerEvents.BOOKING_PAID,
|
||||
|
||||
Reference in new issue
Block a user