From c9135d321df83a3dd2c34590df69e5e62a858b58 Mon Sep 17 00:00:00 2001 From: Moriz Wahl Date: Wed, 21 Jun 2023 14:31:16 +0200 Subject: [PATCH] fix notification added subscription --- webapp/graphql/User.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/webapp/graphql/User.js b/webapp/graphql/User.js index f7fd3c940..fcdac0989 100644 --- a/webapp/graphql/User.js +++ b/webapp/graphql/User.js @@ -243,6 +243,7 @@ export const notificationAdded = () => { ${userFragment} ${commentFragment} ${postFragment} + ${groupFragment} subscription notifications($userId: ID!) { notificationAdded(userId: $userId) { @@ -251,6 +252,9 @@ export const notificationAdded = () => { reason createdAt updatedAt + to { + ...user + } from { __typename ... on Post { @@ -271,6 +275,12 @@ export const notificationAdded = () => { } } } + ... on Group { + ...group + } + } + relatedUser { + ...user } } }