# Event Join
## feat - Join event - kontribusi event - histoty in progress ### No Issue
This commit is contained in:
13
src/app_modules/event/fun/count/count_total_peserta_by_id.ts
Normal file
13
src/app_modules/event/fun/count/count_total_peserta_by_id.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
"use server";
|
||||
|
||||
import prisma from "@/app/lib/prisma";
|
||||
|
||||
export async function Event_countTotalPesertaById(eventId: string) {
|
||||
const data = await prisma.event_Peserta.count({
|
||||
where: {
|
||||
eventId: eventId,
|
||||
},
|
||||
});
|
||||
|
||||
return data;
|
||||
}
|
||||
Reference in New Issue
Block a user