From 508008f586ea732e7094eace98aed9fa669a8877 Mon Sep 17 00:00:00 2001 From: ekzyis Date: Wed, 28 Feb 2024 16:31:31 +0100 Subject: [PATCH] Fix Sub.meSubscription not resolved on page load (#888) --- api/resolvers/sub.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/api/resolvers/sub.js b/api/resolvers/sub.js index 189d4560..9d06c618 100644 --- a/api/resolvers/sub.js +++ b/api/resolvers/sub.js @@ -76,6 +76,11 @@ export async function getSub (parent, { name }, { models, me }) { where: { userId: Number(me?.id) } + }, + SubSubscription: { + where: { + userId: Number(me?.id) + } } } }