Added todo for sorting

This commit is contained in:
PxlLoewe
2025-02-22 17:46:28 +01:00
parent 00efe207b2
commit e42bc192a9

View File

@@ -37,6 +37,14 @@ export const upsertAppointment = async (
export const deleteAppoinement = async (id: Event['id']) => { export const deleteAppoinement = async (id: Event['id']) => {
await prisma.eventAppointment.delete({ where: { id: 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 ( export const upsertParticipant = async (