Skip to content

Commit

Permalink
made includeHidden optional per Froborg's good suggestion :)
Browse files Browse the repository at this point in the history
  • Loading branch information
Muncherkin committed Jan 10, 2025
1 parent 381b291 commit e4a79d6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/resolvers/activity.resolver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
},
Expand Down
2 changes: 1 addition & 1 deletion src/schemas/activity.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -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{
Expand Down

0 comments on commit e4a79d6

Please sign in to comment.