mirror of
https://github.com/tomru/pfadi-bussle.git
synced 2026-03-03 06:27:11 +01:00
make sure to generate just a single bill
This commit is contained in:
@@ -103,7 +103,7 @@ export async function patchBill(
|
||||
const booking = await getBookingByUUID(bookingUUID)
|
||||
const bill =
|
||||
(booking.bill && (await BillModel.findById(booking.bill))) ||
|
||||
(await BillModel.create())
|
||||
(await BillModel.create({}))
|
||||
|
||||
bill.set(billData)
|
||||
await bill.save()
|
||||
|
||||
Reference in New Issue
Block a user