feat: get breakfast package from API
This commit is contained in:
@@ -89,3 +89,9 @@ export const getLanguageSwitcher = cache(
|
||||
export const getSiteConfig = cache(async function getMemoizedSiteConfig() {
|
||||
return serverClient().contentstack.base.siteConfig()
|
||||
})
|
||||
|
||||
export const getBreakfastPackages = cache(async function getMemoizedPackages(
|
||||
hotelId: string
|
||||
) {
|
||||
return serverClient().hotel.packages.breakfast({ hotelId })
|
||||
})
|
||||
|
||||
@@ -6,7 +6,6 @@ import { login } from "@/constants/routes/handleAuth"
|
||||
import { webviews } from "@/constants/routes/webviews"
|
||||
import { appRouter } from "@/server"
|
||||
import { createContext } from "@/server/context"
|
||||
import { internalServerError } from "@/server/errors/next"
|
||||
import { createCallerFactory } from "@/server/trpc"
|
||||
|
||||
const createCaller = createCallerFactory(appRouter)
|
||||
|
||||
Reference in New Issue
Block a user