Merged in SW-3490-set-metadata-for-routes (pull request #2881)
SW-3490 set metadata for routes * feat(SW-3490): Set metadata title for hotelreservation paths Approved-by: Anton Gunnarsson
This commit is contained in:
14
apps/partner-sas/lib/trpc/memoizedRequests/getHotel.ts
Normal file
14
apps/partner-sas/lib/trpc/memoizedRequests/getHotel.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
import { cache } from "react"
|
||||
|
||||
import { serverClient } from ".."
|
||||
|
||||
import type { HotelInput } from "@scandic-hotels/trpc/types/hotel"
|
||||
|
||||
export const getHotel = cache(async function getMemoizedHotelData(
|
||||
input: HotelInput
|
||||
) {
|
||||
input.isCardOnlyPayment ??= false
|
||||
|
||||
const caller = await serverClient()
|
||||
return caller.hotel.get(input)
|
||||
})
|
||||
Reference in New Issue
Block a user