Skip to content

Commit

Permalink
Fix type argument order
Browse files Browse the repository at this point in the history
  • Loading branch information
esdete2 committed Sep 30, 2024
1 parent 360dd0b commit ef4aaac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/server/utils/dataLoader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ export const loadSiteProps = async <CustomSiteData extends SiteData = SiteData>(
return data;
};

export const loadQueryResult = async <M, D>(
export const loadQueryResult = async <D, M>(
queryName: string,
params: any,
opts?: DataLoaderOptions & OptionalOption & QueryOptions
Expand Down Expand Up @@ -184,7 +184,7 @@ export const loadQueryResult = async <M, D>(
return undefined;
}

const data: QueryResult<M, D> = await parseResponse(fetchUrl, response);
const data: QueryResult<D, M> = await parseResponse(fetchUrl, response);
const endTime = Date.now();
log.debug('fetched data from content API for query', queryName, ', took', `${endTime - startTime}ms`);

Expand Down

0 comments on commit ef4aaac

Please sign in to comment.