remove appointment from events
This commit is contained in:
@@ -1,13 +1,9 @@
|
||||
import { Event, EventAppointment, Participant, Prisma } from "@repo/db";
|
||||
import { Event, Participant, Prisma } from "@repo/db";
|
||||
import axios from "axios";
|
||||
|
||||
export const getEvents = async (filter: Prisma.EventWhereInput) => {
|
||||
const { data } = await axios.get<
|
||||
(Event & {
|
||||
Appointments: (EventAppointment & {
|
||||
Appointments: EventAppointment[];
|
||||
Participants: Participant[];
|
||||
})[];
|
||||
Participants: Participant[];
|
||||
})[]
|
||||
>(`/api/event`, {
|
||||
|
||||
Reference in New Issue
Block a user