diff --git a/app/fetch_events.ts b/app/fetch_events.ts index 2840f6c7d7961d7c3c8ffdf57e1a33c5e7dd4478..11aad7eae27ffd04d3b70ce2d96ee5b37eafe05b 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 d17fb267edc8e08b459dba082d3d8e4859e514ca..3d5a4908e56d74de8e542422f81c4b612d475234 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), )