mirror of
https://github.com/tomru/pfadi-bussle.git
synced 2026-03-04 15:07:13 +01:00
fix typings
This commit is contained in:
@@ -69,7 +69,7 @@ export function getBookings({
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
export function createBooking(data: Booking) {
|
export function createBooking(data: Prisma.BookingCreateInput) {
|
||||||
return prisma.booking.create({
|
return prisma.booking.create({
|
||||||
data
|
data
|
||||||
});
|
});
|
||||||
@@ -104,14 +104,13 @@ export function createBill(
|
|||||||
|
|
||||||
export function patchBill(
|
export function patchBill(
|
||||||
bookingUUID: string,
|
bookingUUID: string,
|
||||||
data: Prisma.BillUncheckedUpdateInput,
|
data: Prisma.BillUpdateInput,
|
||||||
) {
|
) {
|
||||||
const { id, ...rest } = data;
|
|
||||||
return prisma.bill.update({
|
return prisma.bill.update({
|
||||||
where: {
|
where: {
|
||||||
},
|
},
|
||||||
data: {
|
data: {
|
||||||
...rest,
|
...data,
|
||||||
booking: {
|
booking: {
|
||||||
connect: { uuid: bookingUUID }
|
connect: { uuid: bookingUUID }
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -102,6 +102,7 @@ function BookingBillPage({
|
|||||||
tarif,
|
tarif,
|
||||||
status,
|
status,
|
||||||
additionalCosts: { create: additionalCosts },
|
additionalCosts: { create: additionalCosts },
|
||||||
|
booking: { connect: { where: { uuid: booking.uuid } } },
|
||||||
})
|
})
|
||||||
|
|
||||||
booking.bill = bill
|
booking.bill = bill
|
||||||
|
|||||||
Reference in New Issue
Block a user