From 050f38b1fa763b0af5fba1ead33b91869eed45ef Mon Sep 17 00:00:00 2001 From: Linus Rath <139418639+rathlinus@users.noreply.github.com> Date: Thu, 2 Apr 2026 23:29:37 +0200 Subject: [PATCH] fix: use dynamic batch size for calendar event retrieval --- lib/jmap/client.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/jmap/client.ts b/lib/jmap/client.ts index f2135c39..8b00f3f4 100644 --- a/lib/jmap/client.ts +++ b/lib/jmap/client.ts @@ -3223,7 +3223,7 @@ export class JMAPClient implements IJMAPClient { async getCalendarEvents(calendarIds?: string[], targetAccountId?: string): Promise { const accountId = targetAccountId || this.getCalendarsAccountId(); - const GET_BATCH_SIZE = 500; + const GET_BATCH_SIZE = this.getMaxObjectsInGet(); const queryArgs: Record = { accountId, limit: 1000 }; if (calendarIds && calendarIds.length > 0) { @@ -3329,7 +3329,7 @@ export class JMAPClient implements IJMAPClient { queryArgs.sort = sort; } - const GET_BATCH_SIZE = 500; + const GET_BATCH_SIZE = this.getMaxObjectsInGet(); // First, query to get IDs const queryResponse = await this.request([