feat: keep inventory of bedselections
This commit is contained in:
committed by
Michael Zetterberg
parent
39b89c5d51
commit
5ca30d02a0
@@ -1,3 +1,5 @@
|
||||
import { redirect } from "next/navigation"
|
||||
|
||||
import { isDefined } from "@/server/utils"
|
||||
|
||||
import { getLang } from "@/i18n/serverContext"
|
||||
@@ -365,6 +367,12 @@ export const getSelectedRoomsAvailabilityEnterDetails = cache(
|
||||
async function getMemoizedSelectedRoomsAvailability(
|
||||
input: RoomsAvailabilityExtendedInputSchema
|
||||
) {
|
||||
return serverClient().hotel.availability.enterDetails(input)
|
||||
const result = await serverClient().hotel.availability.enterDetails(input)
|
||||
|
||||
if (typeof result === "string") {
|
||||
redirect(result)
|
||||
}
|
||||
|
||||
return result
|
||||
}
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user