fix: pwa app badge (#4117)

* fix: clear app badge at zero without notification

* fix: correct users check sometimes failing when searching push subs
This commit is contained in:
Brandon Cohen
2025-04-19 18:50:17 -05:00
committed by GitHub
parent 8cd53cdc3c
commit 208d31180c
2 changed files with 26 additions and 12 deletions

View File

@@ -241,7 +241,7 @@ class WebPushAgent
const allSubs = await userPushSubRepository
.createQueryBuilder('pushSub')
.leftJoinAndSelect('pushSub.user', 'user')
.where('pushSub.userId IN (:users)', {
.where('pushSub.userId IN (:...users)', {
users: manageUsers.map((user) => user.id),
})
.getMany();