fix(connectors): track delta sync tokens per folder for Google Drive

- Store tokens in folder_tokens dict instead of single global token
- Each folder now tracks its own sync state independently
- Fixes issue where indexing folder 2 incorrectly used delta sync after folder 1 was indexed
- First-time indexing now correctly uses full scan for each new folder
This commit is contained in:
CREDO23 2025-12-28 18:32:59 +02:00
parent a5935bc677
commit 506a9297a9
2 changed files with 8 additions and 3 deletions

View file

@ -15,6 +15,7 @@ export const documentTypeEnum = z.enum([
"CLICKUP_CONNECTOR",
"GOOGLE_CALENDAR_CONNECTOR",
"GOOGLE_GMAIL_CONNECTOR",
"GOOGLE_DRIVE_CONNECTOR",
"AIRTABLE_CONNECTOR",
"LUMA_CONNECTOR",
"ELASTICSEARCH_CONNECTOR",