Skip to content

Commit

Permalink
Revert frontpage change
Browse files Browse the repository at this point in the history
  • Loading branch information
RunarVestmann committed Nov 1, 2024
1 parent 960dc1d commit e19dc58
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions libs/cms/src/lib/cms.resolver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -398,10 +398,10 @@ export class CmsResolver {
getFrontpage(
@Args('input') input: GetFrontpageInput,
): Promise<Frontpage | null> {
return this.cmsContentfulService.getFrontpage({
lang: input.lang,
pageIdentifier: input.pageIdentifier,
})
return this.cmsElasticsearchService.getSingleDocumentTypeBySlug(
getElasticsearchIndex(input.lang),
{ type: 'webFrontpage', slug: input.pageIdentifier },
)
}

@CacheControl(defaultCache)
Expand Down

0 comments on commit e19dc58

Please sign in to comment.