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([