* refactor: Move @calcom/core to @calcom/lib * Merging imports * Clean up * Ignoreing type error for now
15 lines
380 B
TypeScript
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;
|