mirror of
https://github.com/tomru/pfadi-bussle.git
synced 2026-03-04 15:07:13 +01:00
fix all the formatting
This commit is contained in:
@@ -5,7 +5,7 @@ import { createBill, patchBill } from '../../../../db/index'
|
||||
export default async function billHandler(
|
||||
req: NextApiRequest,
|
||||
res: NextApiResponse
|
||||
): Promise<void> {
|
||||
): Promise<void> {
|
||||
const {
|
||||
method,
|
||||
query: { uuid: uuids },
|
||||
|
||||
@@ -27,10 +27,10 @@ export default async function userHandler(
|
||||
}
|
||||
|
||||
try {
|
||||
const booking = await patchBooking(uuid, req.body);
|
||||
const booking = await patchBooking(uuid, req.body)
|
||||
res.status(200).json(booking)
|
||||
} catch (error) {
|
||||
console.error('failed patch booking', error);
|
||||
console.error('failed patch booking', error)
|
||||
res.status(400).end(`Failed to save booking: ${error.message}`)
|
||||
}
|
||||
break
|
||||
|
||||
Reference in New Issue
Block a user