Skip to content

Commit

Permalink
fix(webpush): load user in push sub query (sct#1894)
Browse files Browse the repository at this point in the history
Co-authored-by: sct <ryan@sct.dev>
  • Loading branch information
2 people authored and nicospz committed Aug 9, 2021
1 parent 6db16db commit 4594801
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions server/lib/notifications/agents/webpush.ts
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,7 @@ class WebPushAgent

const allSubs = await userPushSubRepository
.createQueryBuilder('pushSub')
.leftJoinAndSelect('pushSub.user', 'user')
.where('pushSub.userId IN (:users)', {
users: manageUsers.map((user) => user.id),
})
Expand Down

0 comments on commit 4594801

Please sign in to comment.