mirror of
https://github.com/tomru/pfadi-bussle.git
synced 2026-03-03 06:27:11 +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({
|
||||
data
|
||||
});
|
||||
@@ -104,14 +104,13 @@ export function createBill(
|
||||
|
||||
export function patchBill(
|
||||
bookingUUID: string,
|
||||
data: Prisma.BillUncheckedUpdateInput,
|
||||
data: Prisma.BillUpdateInput,
|
||||
) {
|
||||
const { id, ...rest } = data;
|
||||
return prisma.bill.update({
|
||||
where: {
|
||||
},
|
||||
data: {
|
||||
...rest,
|
||||
...data,
|
||||
booking: {
|
||||
connect: { uuid: bookingUUID }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user