Files
calendar/packages/lib/crmManager/tasker/crmScheduler.ts
T
Keith WilliamsandGitHub 7180eb067a refactor: Move @calcom/core to @calcom/lib (#19655)
* refactor: Move @calcom/core to @calcom/lib

* Merging imports

* Clean up

* Ignoreing type error for now
2025-03-02 23:02:35 -03:00

15 lines
380 B
TypeScript

import tasker from "@calcom/features/tasker";
import { tasksConfig } from "@calcom/features/tasker/tasks";
class CRMScheduler {
static async createEvent({ bookingUid }: { bookingUid: string }) {
return tasker.create(
"createCRMEvent",
{ bookingUid },
{ maxAttempts: tasksConfig.createCRMEvent.maxAttempts ?? 5 }
);
}
}
export default CRMScheduler;