Revert "dont download calendar attachments"

This reverts commit 4a47006aa9.
This commit is contained in:
Ramnique Singh 2026-02-03 23:14:29 +05:30
parent 3cfbfa7c34
commit 26c3e495d1
2 changed files with 3 additions and 2 deletions

View file

@ -62,6 +62,7 @@ const providerConfigs: ProviderConfig = {
scopes: [
'https://www.googleapis.com/auth/gmail.readonly',
'https://www.googleapis.com/auth/calendar.events.readonly',
'https://www.googleapis.com/auth/drive.readonly',
],
},
'fireflies-ai': {

View file

@ -12,7 +12,7 @@ const SYNC_INTERVAL_MS = 5 * 60 * 1000; // Check every 5 minutes
const LOOKBACK_DAYS = 14;
const REQUIRED_SCOPES = [
'https://www.googleapis.com/auth/calendar.events.readonly',
// 'https://www.googleapis.com/auth/drive.readonly'
'https://www.googleapis.com/auth/drive.readonly'
];
const nhm = new NodeHtmlMarkdown();
@ -186,7 +186,7 @@ async function syncCalendarWindow(auth: OAuth2Client, syncDir: string, lookbackD
for (const event of events) {
if (event.id) {
await saveEvent(event, syncDir);
// await processAttachments(drive, event, syncDir);
await processAttachments(drive, event, syncDir);
currentEventIds.add(event.id);
}
}