Fix Sub.meSubscription not resolved on page load (#888)

This commit is contained in:
ekzyis 2024-02-28 16:31:31 +01:00 committed by GitHub
parent 1c488b13df
commit 508008f586
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 5 additions and 0 deletions

View File

@ -76,6 +76,11 @@ export async function getSub (parent, { name }, { models, me }) {
where: { where: {
userId: Number(me?.id) userId: Number(me?.id)
} }
},
SubSubscription: {
where: {
userId: Number(me?.id)
}
} }
} }
} }