Merged in chore/refactor-booking-flow (pull request #1333)

chore: cleaning up select-rate

Approved-by: Arvid Norlin
Approved-by: Linus Flood
This commit is contained in:
Simon.Emanuelsson
2025-02-14 13:51:37 +00:00
95 changed files with 3269 additions and 3527 deletions

View File

@@ -567,7 +567,7 @@ export const hotelQueryRouter = router({
error: validateAvailabilityData.error,
})
)
throw badRequestError()
return null
}
metrics.roomAvailability.success.add(1, {
hotelId,
@@ -1547,6 +1547,7 @@ export const hotelQueryRouter = router({
"api.hotels.packages error",
JSON.stringify({ query: { hotelId, params } })
)
return null
}
const apiJson = await apiResponse.json()
@@ -1565,7 +1566,7 @@ export const hotelQueryRouter = router({
error: validatedPackagesData.error,
})
)
throw badRequestError()
return null
}
metrics.packages.success.add(1, {