Scheduling infrastructure for absolutely everyone.
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;