Fix voting, intergarsi ke API
This commit is contained in:
@@ -4,10 +4,13 @@ import prisma from "@/app/lib/prisma";
|
||||
import { funGetUserIdByToken } from "@/app_modules/_global/fun/get";
|
||||
import { revalidatePath } from "next/cache";
|
||||
|
||||
export async function Vote_funCreateHasil(
|
||||
pilihanVotingId: string,
|
||||
votingId: string
|
||||
) {
|
||||
export async function Vote_funCreateHasil({
|
||||
pilihanVotingId,
|
||||
votingId,
|
||||
}: {
|
||||
pilihanVotingId: string;
|
||||
votingId: string;
|
||||
}) {
|
||||
const userLoginId = await funGetUserIdByToken();
|
||||
|
||||
const get = await prisma.voting_DaftarNamaVote.findFirst({
|
||||
|
||||
Reference in New Issue
Block a user