feat: improve handling of stays
This commit is contained in:
committed by
Michael Zetterberg
parent
e733ce283a
commit
f46207a308
@@ -28,7 +28,6 @@ export const friendTransactionsInput = z
|
||||
})
|
||||
.default({ limit: 5, page: 1 })
|
||||
|
||||
|
||||
// Mutation
|
||||
export const addCreditCardInput = z.object({
|
||||
language: z.string(),
|
||||
|
||||
@@ -379,16 +379,6 @@ export const userQueryRouter = router({
|
||||
)
|
||||
|
||||
if (!apiResponse.ok) {
|
||||
// switch (apiResponse.status) {
|
||||
// case 400:
|
||||
// throw badRequestError(apiResponse)
|
||||
// case 401:
|
||||
// throw unauthorizedError(apiResponse)
|
||||
// case 403:
|
||||
// throw forbiddenError(apiResponse)
|
||||
// default:
|
||||
// throw internalServerError(apiResponse)
|
||||
// }
|
||||
const text = await apiResponse.text()
|
||||
console.error(
|
||||
"api.booking.stays.past error ",
|
||||
@@ -464,16 +454,6 @@ export const userQueryRouter = router({
|
||||
)
|
||||
|
||||
if (!apiResponse.ok) {
|
||||
// switch (apiResponse.status) {
|
||||
// case 400:
|
||||
// throw badRequestError(apiResponse)
|
||||
// case 401:
|
||||
// throw unauthorizedError(apiResponse)
|
||||
// case 403:
|
||||
// throw forbiddenError(apiResponse)
|
||||
// default:
|
||||
// throw internalServerError(apiResponse)
|
||||
// }
|
||||
const text = await apiResponse.text()
|
||||
console.error(
|
||||
"api.booking.stays.future error ",
|
||||
|
||||
Reference in New Issue
Block a user