Skip to content

Commit 2526e3e

Browse files
committed
Allow cron route calendar env overrides
1 parent e7e94e7 commit 2526e3e

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

app/src/app/api/cron/luma-sync/route.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,15 @@ export async function GET(request: Request) {
2424
}
2525

2626
try {
27+
const calendarApiId = process.env.LUMA_CALENDAR_API_ID;
28+
const calendarHandle =
29+
process.env.LUMA_CALENDAR_HANDLE ?? DEFAULT_CALENDAR_HANDLE;
30+
2731
const run = await start(syncLumaEventsWorkflow, [
2832
{
2933
limit: DEFAULT_LIMIT,
30-
calendarHandle: DEFAULT_CALENDAR_HANDLE,
34+
calendarApiId,
35+
calendarHandle,
3136
},
3237
]);
3338

0 commit comments

Comments
 (0)