Type fixes

This commit is contained in:
zomars 2022-04-14 12:25:47 -06:00
parent 4b7e3b3b16
commit cbd84cbe64

View File

@ -1,6 +1,11 @@
import { Prisma } from "@prisma/client";
import prisma from "@lib/prisma";
export const deleteAllBookingsByEmail = async (email: string, whereConditional = {}) =>
export const deleteAllBookingsByEmail = async (
email: string,
whereConditional: Prisma.BookingWhereInput = {}
) =>
prisma.booking.deleteMany({
where: {
user: {