diff --git a/src/server/utils/dataLoader.ts b/src/server/utils/dataLoader.ts index 5bfa5e5..f188c6c 100644 --- a/src/server/utils/dataLoader.ts +++ b/src/server/utils/dataLoader.ts @@ -149,9 +149,9 @@ export const loadSiteProps = async ( return data; }; -export const loadQueryResult = async ( +export const loadQueryResult = async ( queryName: string, - params: any, + params?: any, opts?: DataLoaderOptions & OptionalOption & QueryOptions ) => { const apiUrl = process.env.NEOS_BASE_URL; @@ -184,7 +184,7 @@ export const loadQueryResult = async ( return undefined; } - const data: QueryResult = await parseResponse(fetchUrl, response); + const data: QueryResult = await parseResponse(fetchUrl, response); const endTime = Date.now(); log.debug('fetched data from content API for query', queryName, ', took', `${endTime - startTime}ms`);