Skip to content

Commit

Permalink
removed autentication requirement for activity queries
Browse files Browse the repository at this point in the history
  • Loading branch information
Muncherkin committed Feb 18, 2025
1 parent f261aea commit 7b00e46
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/resolvers/activity.resolver.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { reduce } from '@/reducers';
import { hasAccess, hasAuthenticated } from '@/util';
import { hasAccess } from '@/util';
import { ActivityAPI } from '@api/activity';
import { Feature, Resolvers } from '@generated/graphql';
import { activityReducer } from '@reducer/activity';
Expand All @@ -9,13 +9,11 @@ const activityApi = new ActivityAPI();
const activityresolver: Resolvers = {
Query: {
activity: async (_, { id }, ctx) => {

Check warning on line 11 in src/resolvers/activity.resolver.ts

View workflow job for this annotation

GitHub Actions / ESLint Report Analysis

src/resolvers/activity.resolver.ts#L11

[@typescript-eslint/no-unused-vars] 'ctx' is defined but never used. Allowed unused args must match /^_/u.
await hasAuthenticated(ctx);
const activity = await activityApi.getActivity(id);

return activityReducer(activity);
},
activities: async (_, { from, to, utskott, includeHidden }, ctx) => {

Check warning on line 16 in src/resolvers/activity.resolver.ts

View workflow job for this annotation

GitHub Actions / ESLint Report Analysis

src/resolvers/activity.resolver.ts#L16

[@typescript-eslint/no-unused-vars] 'ctx' is defined but never used. Allowed unused args must match /^_/u.
await hasAuthenticated(ctx);
const activities = await activityApi.getActivities(from, to, utskott, includeHidden ?? false);

return reduce(activities, activityReducer);
Expand Down

0 comments on commit 7b00e46

Please sign in to comment.