Files
calendar/packages/features/di/webhooks/modules/WebhookProducerService.module.ts
T
Syed Ali ShahbazandGitHub c4c62369e5 chore: Infrastructure scaffolding for Webhook's Producer/Consumer approach before wiring (#25954)
* --INIT

* fixes

* better comments and some clean up

* test and type fix

* clean up

* address feedback

* fix erroneous booking_confirmed to booking_rescheduled
2026-01-22 18:33:34 +05:30

19 lines
658 B
TypeScript

import { createModule } from "@evyweb/ioctopus";
import { WebhookTaskerProducerService } from "@calcom/features/webhooks/lib/service/WebhookTaskerProducerService";
import { SHARED_TOKENS } from "../../shared/shared.tokens";
import { WEBHOOK_TOKENS } from "../Webhooks.tokens";
/**
* Producer Service Module
*
* Binds the lightweight WebhookTaskerProducerService.
* Dependencies: Only Tasker and Logger (no heavy deps).
*/
export const webhookProducerServiceModule = createModule();
webhookProducerServiceModule
.bind(WEBHOOK_TOKENS.WEBHOOK_PRODUCER_SERVICE)
.toClass(WebhookTaskerProducerService, [SHARED_TOKENS.TASKER, SHARED_TOKENS.LOGGER]);