mirror of
https://github.com/sct/overseerr.git
synced 2025-09-17 17:24:35 +02:00
fix(webpush): load user in push sub query (#1894)
Co-authored-by: sct <ryan@sct.dev>
This commit is contained in:
@@ -190,6 +190,7 @@ class WebPushAgent
|
|||||||
|
|
||||||
const allSubs = await userPushSubRepository
|
const allSubs = await userPushSubRepository
|
||||||
.createQueryBuilder('pushSub')
|
.createQueryBuilder('pushSub')
|
||||||
|
.leftJoinAndSelect('pushSub.user', 'user')
|
||||||
.where('pushSub.userId IN (:users)', {
|
.where('pushSub.userId IN (:users)', {
|
||||||
users: manageUsers.map((user) => user.id),
|
users: manageUsers.map((user) => user.id),
|
||||||
})
|
})
|
||||||
|
Reference in New Issue
Block a user