From ef4aaacd0cb5df09a3eeab62252ca9bc250b7e90 Mon Sep 17 00:00:00 2001 From: Philip Schmidt Date: Mon, 30 Sep 2024 17:51:11 +0200 Subject: [PATCH] Fix type argument order --- src/server/utils/dataLoader.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/server/utils/dataLoader.ts b/src/server/utils/dataLoader.ts index 5bfa5e5..56234bb 100644 --- a/src/server/utils/dataLoader.ts +++ b/src/server/utils/dataLoader.ts @@ -149,7 +149,7 @@ export const loadSiteProps = async ( return data; }; -export const loadQueryResult = async ( +export const loadQueryResult = async ( queryName: string, params: any, opts?: DataLoaderOptions & OptionalOption & QueryOptions @@ -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`);