From ef461dc9690b7eccb45a0c937650e223ca0cf3df Mon Sep 17 00:00:00 2001 From: Moriz Wahl Date: Fri, 30 Jun 2023 14:32:09 +0200 Subject: [PATCH] Update backend/src/graphql/resolver/util/findContributions.ts Co-authored-by: Hannes Heine --- backend/src/graphql/resolver/util/findContributions.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/graphql/resolver/util/findContributions.ts b/backend/src/graphql/resolver/util/findContributions.ts index b717abf55..b35d75b6b 100644 --- a/backend/src/graphql/resolver/util/findContributions.ts +++ b/backend/src/graphql/resolver/util/findContributions.ts @@ -35,7 +35,7 @@ export const findContributions = async ( } const where = - query && relations && relations.user + query && relations?.user ? [ { ...requiredWhere,