Skip to content

Commit

Permalink
Add member ids from Hololive Justice and raise limit for lives/open. (#…
Browse files Browse the repository at this point in the history
…157)

* Add member ids from Hololive Justice.

* Raise limit for lives/open to 100.
  • Loading branch information
YunzheZJU authored Jun 29, 2024
1 parent 53cee34 commit eb50d50
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 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
5 changes: 3 additions & 2 deletions src/options/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
{
name: this.$t('app.groups.newDebuts'),
// Dummy ids are specified here to be compatible to new members
memberIds: range(106, 116),
memberIds: range(110, 120),
},
{
name: this.$t('app.groups.hololive'),
Expand All @@ -76,7 +76,8 @@
},
{
name: this.$t('app.groups.hololiveEnglish'),
memberIds: [65, ...range(54, 59), ...range(66, 72), ...range(92, 96)],
// eslint-disable-next-line max-len
memberIds: [65, ...range(54, 59), ...range(66, 72), ...range(92, 96), ...range(106, 110)],
},
{
name: this.$t('app.groups.holostarsEnglish'),
Expand Down

0 comments on commit eb50d50

Please sign in to comment.