Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanoverna committed Jan 10, 2025
1 parent 0efd09e commit a6239b5
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/pages/partners/[partnerSlug]/_graphql.ts
Original file line number Diff line number Diff line change
Expand Up @@ -159,19 +159,19 @@ export const buildSitemapUrls: BuildSitemapUrlsFn = async (executeQueryOptions)
return entries.map(buildUrlForPartner);
};

export const paramsToRecordId: ParamsToRecordIdFn<{ slug: string }> = async ({
export const paramsToRecordId: ParamsToRecordIdFn<{ partnerSlug: string }> = async ({
executeQueryOptions,
params: { slug },
params: { partnerSlug },
}) => {
const { entity } = await executeQueryOutsideAstro(
graphql(/* GraphQL */ `
query ParamsToRecordId($slug: String!) {
entity: partner(filter: { slug: { eq: $slug } }) {
query ParamsToRecordId($partnerSlug: String!) {
entity: partner(filter: { slug: { eq: $partnerSlug } }) {
id
}
}
`),
{ ...executeQueryOptions, variables: { slug } },
{ ...executeQueryOptions, variables: { partnerSlug } },
);

return entity?.id;
Expand Down

0 comments on commit a6239b5

Please sign in to comment.