Mobile API: Admin Voting

Add:
- src/app/api/mobile/admin/voting/

Fix:
-  src/app/api/admin/vote/status/[name]/route.ts

### No Issue
This commit is contained in:
nabillah
2025-10-20 17:40:50 +08:00
parent 9869be5af9
commit 23b7d6b4e4
3 changed files with 254 additions and 1 deletions

View File

@@ -70,7 +70,7 @@ export async function GET(
for (let i of getAllData) {
if (moment(i.akhirVote).diff(moment(), "minutes") < 0) {
await prisma.event.update({
await prisma.voting.update({
where: {
id: i.id,
},