Files
Giveaway-app/src/components/EntryCount.tsx
T
2025-05-05 15:23:23 +03:00

13 lines
294 B
TypeScript

import { db } from "@/lib/db";
async function entrycount(userId: string, giveawayId: string) {
const entryCount = await db.entry.count({
where: {
userId: userId,
giveawayId: giveawayId,
},
});
return entryCount;
}
export default entrycount;