From e42bc192a9d85238c87e1f8b2cb71276eada99b2 Mon Sep 17 00:00:00 2001 From: PxlLoewe <72106766+PxlLoewe@users.noreply.github.com> Date: Sat, 22 Feb 2025 17:46:28 +0100 Subject: [PATCH] Added todo for sorting --- apps/hub/app/(app)/admin/event/action.ts | 8 ++++++++ 1 file changed, 8 insertions(+) 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 (