feat(SW-2116): Use refId instead of confirmationNumber
This commit is contained in:
@@ -17,7 +17,6 @@ import type {
|
||||
HotelInput,
|
||||
} from "@/types/trpc/routers/hotel/hotel"
|
||||
import type { Lang } from "@/constants/languages"
|
||||
import type { LinkedReservationsInput } from "@/server/routers/booking/input"
|
||||
import type { GetHotelsByCSFilterInput } from "@/server/routers/hotels/input"
|
||||
import type { GetSavedPaymentCardsInput } from "@/server/routers/user/input"
|
||||
|
||||
@@ -136,8 +135,8 @@ export const getPackages = cache(async function getMemoizedPackages(
|
||||
})
|
||||
|
||||
export const getBookingConfirmation = cache(
|
||||
async function getMemoizedBookingConfirmation(confirmationNumber: string) {
|
||||
return serverClient().booking.get({ confirmationNumber })
|
||||
async function getMemoizedBookingConfirmation(refId: string) {
|
||||
return serverClient().booking.get({ refId })
|
||||
}
|
||||
)
|
||||
|
||||
@@ -156,8 +155,10 @@ export const findBooking = cache(async function getMemoizedFindBooking(
|
||||
})
|
||||
|
||||
export const getLinkedReservations = cache(
|
||||
async function getMemoizedLinkedReservations(input: LinkedReservationsInput) {
|
||||
return serverClient().booking.linkedReservations(input)
|
||||
async function getMemoizedLinkedReservations(refId: string) {
|
||||
return serverClient().booking.linkedReservations({
|
||||
refId,
|
||||
})
|
||||
}
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user