From a4697fc281e8a9dfc00fbaa1da93d77cd39eab89 Mon Sep 17 00:00:00 2001 From: Arjun <6592213+arkml@users.noreply.github.com> Date: Mon, 25 May 2026 20:05:39 +0530 Subject: [PATCH] dont sync working location --- apps/x/packages/core/src/knowledge/sync_calendar.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/apps/x/packages/core/src/knowledge/sync_calendar.ts b/apps/x/packages/core/src/knowledge/sync_calendar.ts index 84e25a00..a010295a 100644 --- a/apps/x/packages/core/src/knowledge/sync_calendar.ts +++ b/apps/x/packages/core/src/knowledge/sync_calendar.ts @@ -30,6 +30,10 @@ function formatEventTime(event: AnyEvent): string { return `${startStr} → ${endStr}`; } +function shouldSyncCalendarEvent(event: cal.Schema$Event): boolean { + return event.eventType !== 'workingLocation'; +} + function formatEventBlock(event: AnyEvent, label: 'NEW' | 'UPDATED'): string { const id = getStr(event, 'id') ?? '(unknown id)'; const title = getStr(event, 'summary') ?? '(no title)'; @@ -347,6 +351,9 @@ async function syncCalendarWindow(auth: OAuth2Client, syncDir: string, lookbackD console.log(`Found ${events.length} events.`); for (const event of events) { if (event.id) { + if (!shouldSyncCalendarEvent(event)) { + continue; + } const result = await saveEvent(event, syncDir); const attachmentsSaved = await processAttachments(drive, event, syncDir); currentEventIds.add(event.id);