diff --git a/apps/hub/app/(app)/admin/event/action.ts b/apps/hub/app/(app)/admin/event/action.ts index b9ac9ba3..6554c78d 100644 --- a/apps/hub/app/(app)/admin/event/action.ts +++ b/apps/hub/app/(app)/admin/event/action.ts @@ -37,6 +37,14 @@ export const upsertAppointment = async ( export const deleteAppoinement = async (id: Event['id']) => { await prisma.eventAppointment.delete({ where: { id: id } }); + prisma.eventAppointment.findMany({ + where: { + eventId: id, + }, + orderBy: { + // TODO: add order by in relation to table selected column + }, + }); }; export const upsertParticipant = async (