From bb5853745b324b690317e6543212a41dceb0528c Mon Sep 17 00:00:00 2001
From: gregor <gregor.schulz@holi.social>
Date: Wed, 5 Mar 2025 08:26:28 +0100
Subject: [PATCH] fix unused code

---
 app/fetch_events.ts | 5 +++--
 app/server.ts       | 5 ++---
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/app/fetch_events.ts b/app/fetch_events.ts
index 2840f6c..11aad7e 100644
--- a/app/fetch_events.ts
+++ b/app/fetch_events.ts
@@ -1,7 +1,7 @@
 import { logger } from './logging.ts'
 import { AppApiEvent, AppApiResponse } from './providers/jasd/appapi.dto.types.ts'
 
-const OPEN_API_BASE_URL = 'https://gemeinschaftswerk-nachhaltigkeit.de/app/openapi/v1'
+//const OPEN_API_BASE_URL = 'https://gemeinschaftswerk-nachhaltigkeit.de/app/openapi/v1'
 const APP_API_BASE_URL = 'https://gemeinschaftswerk-nachhaltigkeit.de/app/api/v2'
 const APP_FILES_BASE_URL = 'https://gemeinschaftswerk-nachhaltigkeit.de/app/api/v1/files'
 
@@ -60,7 +60,7 @@ const toHoliEvent = (event: AppApiEvent): HoliEvent | null => {
     },
   }
 }
-
+/*
 const buildJasdOpenApiUrl = (
   { limit, offset, location }: FetchEventsInput,
 ): URL => {
@@ -75,6 +75,7 @@ const buildJasdOpenApiUrl = (
   }
   return url
 }
+*/
 
 const buildJasdAppApiUrl = (
   { limit, offset, location }: FetchEventsInput,
diff --git a/app/server.ts b/app/server.ts
index d17fb26..3d5a490 100644
--- a/app/server.ts
+++ b/app/server.ts
@@ -56,15 +56,14 @@ const validateEventsRequestInput = (request: EventsRequest): FetchEventsInput =>
 const createResolvers = (_config: ServerConfig) => ({
   Query: {
     events: (
+      parameters: EventsRequest,
       // deno-lint-ignore no-explicit-any
       _parent: any,
-      parameters: EventsRequest,
-      context: GraphQLContext,
+      _context: GraphQLContext,
     ): Promise<HoliEventsResponse> => {
       if (_config.fake) {
         return Promise.resolve({ totalResults: 0, data: [] })
       } else {
-        // todo gregor: filter for: a) in future b) location when in parameter request input
         return fetchEvents(
           validateEventsRequestInput(parameters),
         )
-- 
GitLab