From f4ae5839420dd3c993f729989abd87fc4a7b02e2 Mon Sep 17 00:00:00 2001 From: leonnicolas Date: Mon, 7 Dec 2020 12:16:17 +0100 Subject: [PATCH] set distributedActiveBikeParte to always false --- src/resolvers/participantResolvers.ts | 3 +++ src/schema/type-defs.ts | 1 + 2 files changed, 4 insertions(+) diff --git a/src/resolvers/participantResolvers.ts b/src/resolvers/participantResolvers.ts index 456ee12..f79b572 100644 --- a/src/resolvers/participantResolvers.ts +++ b/src/resolvers/participantResolvers.ts @@ -88,6 +88,9 @@ export default { throw new PermissionError(); } }, + distributedActiveBikeParte: () => { + return false; + }, isLockedByMe: (parent: any, __: any, { req }: { req: any }) => isLockedByMe(parent, { req }), isLocked: (parent: any, __: any, { req }: { req: any }) => isLocked(parent, { req }) }, diff --git a/src/schema/type-defs.ts b/src/schema/type-defs.ts index 768b457..535fb61 100644 --- a/src/schema/type-defs.ts +++ b/src/schema/type-defs.ts @@ -422,6 +422,7 @@ export default gql` This value is calculated form other values. It is true, if the person is not on the black list and not retired and is either Mentor dt. Pate or Partner Mentor dt. Partnerpate for at least one bike. + Note: this will always be false for the moment. """ distributedActiveBikeParte: Boolean! engagement: [Engagement]