Merged in chore/refactor-trpc-booking-routes (pull request #3510)
feat(BOOK-750): refactor booking endpoints * WIP * wip * wip * parse dates in UTC * wip * no more errors * Merge branch 'master' of bitbucket.org:scandic-swap/web into chore/refactor-trpc-booking-routes * . * cleanup * import named z from zod * fix(BOOK-750): updateBooking api endpoint expects dateOnly, we passed ISO date Approved-by: Anton Gunnarsson
This commit is contained in:
@@ -79,6 +79,13 @@ export function unprocessableContent(cause?: TRPCCause, message: string = "") {
|
||||
})
|
||||
}
|
||||
|
||||
export function badGatewayError(cause?: TRPCCause, message: string = "") {
|
||||
return new TRPCError({
|
||||
code: "BAD_GATEWAY",
|
||||
cause: harmonizeCause(cause, message),
|
||||
})
|
||||
}
|
||||
|
||||
export function internalServerError(cause?: TRPCCause, message: string = "") {
|
||||
return new TRPCError({
|
||||
code: "INTERNAL_SERVER_ERROR",
|
||||
|
||||
Reference in New Issue
Block a user