Added todo for sorting
This commit is contained in:
@@ -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 (
|
||||||
|
|||||||
Reference in New Issue
Block a user