Skip to content

Commit

Permalink
Revert endpoint change
Browse files Browse the repository at this point in the history
  • Loading branch information
RunarVestmann committed Nov 6, 2024
1 parent 3a971c5 commit 76f0e22
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion libs/cms/src/lib/cms.resolver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,10 @@ export class CmsResolver {
async getServiceWebPage(
@Args('input') input: GetServiceWebPageInput,
): Promise<ServiceWebPage | null> {
return this.cmsContentfulService.getServiceWebPage(input.slug, input.lang)
return this.cmsElasticsearchService.getSingleDocumentTypeBySlug(
getElasticsearchIndex(input.lang),
{ type: 'webServiceWebPage', slug: input.slug },
)
}

@CacheControl(defaultCache)
Expand Down

0 comments on commit 76f0e22

Please sign in to comment.