make sure to generate just a single bill

This commit is contained in:
Thomas Ruoff
2021-02-27 23:15:52 +01:00
parent b11e95a127
commit e84d6549a0

View File

@@ -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()