Skip to content

Commit 43cedd8

Browse files
increase max limit
1 parent fe33f3c commit 43cedd8

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

components/gmail/common/constants.mjs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,14 @@ const BODY_TYPES = {
55
};
66
const HISTORICAL_EVENTS = 10;
77
const DEFAULT_LIMIT = 100;
8+
const MAX_LIMIT = 500;
89
const INBOX_LABEL_ID = "INBOX";
910

1011
export default {
1112
USER_ID,
1213
BODY_TYPES,
1314
HISTORICAL_EVENTS,
1415
DEFAULT_LIMIT,
16+
MAX_LIMIT,
1517
INBOX_LABEL_ID,
1618
};

components/gmail/sources/common/polling-history.mjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ export default {
7878
const opts = {
7979
startHistoryId: String(startHistoryId),
8080
historyTypes: this.getHistoryTypes(),
81+
maxResults: constants.MAX_LIMIT,
8182
};
8283

8384
const length = this.labels?.length > 0

0 commit comments

Comments
 (0)