Skip to content

Commit

Permalink
address PR issues
Browse files Browse the repository at this point in the history
  • Loading branch information
pokornyd committed Jul 31, 2023
1 parent ecfa89c commit 98b1dae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/kontentClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export const getItemByCodename = <ItemType extends IContentItem>(codename: PerCo

const homepageTypeCodename = "web_spotlight_root" as const;

export const getHomepage = async (usePreview: boolean) =>
export const getHomepage = (usePreview: boolean) =>
deliveryClient
.items()
.type(homepageTypeCodename)
Expand All @@ -76,7 +76,7 @@ export const getHomepage = async (usePreview: boolean) =>
waitForLoadingNewContent: usePreview
})
.depthParameter(10)
.toAllPromise()
.toPromise()
.then(res => res.data.items[0] as WSL_WebSpotlightRoot | undefined)

export const getProductsForListing = async (usePreview: boolean, page?: number, categories?: string[], pageSize: number = ProductsPageSize) => {
Expand Down

0 comments on commit 98b1dae

Please sign in to comment.