"use server";

import prisma from "@/lib/prisma";

export async function auth_funDeleteAktivasiKodeOtpByNomor({
  nomor,
}: {
  nomor: string;
}) {
  // console.log(otpId);


  
  const updt = await prisma.kodeOtp.deleteMany({
    where: {
      nomor: nomor,
    },
  });

  if (!updt) return { status: 400, message: "Gagal Update Aktivasi Kode OTP" };
  return { status: 200, message: "Berhasil Update Aktivasi Kode OTP" };
}
