Skip to content

Commit

Permalink
Raise limit for lives/open to 100.
Browse files Browse the repository at this point in the history
  • Loading branch information
YunzheZJU committed Jun 19, 2024
1 parent 9a5f4a6 commit 8803f06
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/background/workflows/workflows.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ const syncOpenLives = async () => {
const [currentLives, scheduledLives] = partition(filterLives(await getOpenLives({
membersMask: getMembersMask(getSubscriptionByMember()),
startBefore: getUnixAfterDays(7),
limit: 100,
})), ({ start_at: startAt }) => dayjs().isAfter(startAt))

await browser.action.setBadgeText({ text: currentLives.length.toString() })
Expand Down
1 change: 1 addition & 0 deletions src/background/workflows/workflows.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,7 @@ test('should sync open lives', async () => {
const returnValueOne = await workflows.syncOpenLives()

expect(getOpenLives).toHaveBeenCalledWith({
limit: 100,
membersMask: undefined,
startBefore: getUnixAfterDays(7),
})
Expand Down

0 comments on commit 8803f06

Please sign in to comment.