feat: add party user gender field to schema and implement event joining functionality with gender tracking

This commit is contained in:
louiscklaw
2025-06-18 02:28:29 +08:00
parent 279496ea38
commit 44091e0432
7 changed files with 90 additions and 2 deletions

View File

@@ -47,6 +47,10 @@ async function getEvent(eventId: string): Promise<EventItem | null> {
return prisma.eventItem.findFirst({ where: { id: eventId } });
}
async function getEventItemById(eventId: string): Promise<EventItem | null> {
return prisma.eventItem.findFirst({ where: { id: eventId } });
}
// async function createNewEvent(createForm: CreateEvent) {
// return prisma.event.create({ data: createForm });
// }
@@ -68,4 +72,5 @@ export {
// updateEvent,
// deleteEvent,
// createNewEvent,
getEventItemById,
};