From 6f2db6a6ccf299262cf86d91acf639b921f28286 Mon Sep 17 00:00:00 2001 From: TheCatLady <52870424+TheCatLady@users.noreply.github.com> Date: Mon, 9 Aug 2021 01:27:12 -0400 Subject: [PATCH] fix(webpush): load user in push sub query (#1894) Co-authored-by: sct --- server/lib/notifications/agents/webpush.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/server/lib/notifications/agents/webpush.ts b/server/lib/notifications/agents/webpush.ts index 968c14352..afe4b7c10 100644 --- a/server/lib/notifications/agents/webpush.ts +++ b/server/lib/notifications/agents/webpush.ts @@ -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), })