From e4a79d68bab885d75b5e7db7fc4c640ce6c7e706 Mon Sep 17 00:00:00 2001 From: Muncherkin <48158637+Muncherkin@users.noreply.github.com> Date: Fri, 10 Jan 2025 20:13:43 +0100 Subject: [PATCH] made includeHidden optional per Froborg's good suggestion :) --- src/resolvers/activity.resolver.ts | 2 +- src/schemas/activity.graphql | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/resolvers/activity.resolver.ts b/src/resolvers/activity.resolver.ts index 13e4e720..eae4e8ad 100644 --- a/src/resolvers/activity.resolver.ts +++ b/src/resolvers/activity.resolver.ts @@ -16,7 +16,7 @@ const activityresolver: Resolvers = { }, activities: async (_, { from, to, utskott, includeHidden }, ctx) => { await hasAuthenticated(ctx); - const activities = await activityApi.getActivities(from, to, utskott, includeHidden); + const activities = await activityApi.getActivities(from, to, utskott, includeHidden ?? false); return reduce(activities, activityReducer); }, diff --git a/src/schemas/activity.graphql b/src/schemas/activity.graphql index 4904715f..8870f892 100644 --- a/src/schemas/activity.graphql +++ b/src/schemas/activity.graphql @@ -4,7 +4,7 @@ scalar DateTime type Query{ activity(id: String!) : Activity! - activities(from: DateTime!, to: DateTime!, utskott: [Utskott!]!, includeHidden: Boolean!) : [Activity!]! + activities(from: DateTime!, to: DateTime!, utskott: [Utskott!]!, includeHidden: Boolean) : [Activity!]! } type Mutation{