Delete termsOfServiceAccepted on register

### No issue
This commit is contained in:
2026-02-24 18:04:05 +08:00
parent 5551f30721
commit 0271c87ba9

View File

@@ -27,12 +27,12 @@ export async function POST(req: Request) {
}); });
// ✅ Validasi wajib setuju Terms // ✅ Validasi wajib setuju Terms
if (data.termsOfServiceAccepted !== true) { // if (data.termsOfServiceAccepted !== true) {
return NextResponse.json({ // return NextResponse.json({
success: false, // success: false,
message: "You must agree to the Terms of Service", // message: "You must agree to the Terms of Service",
}); // });
} // }
const createUser = await prisma.user.create({ const createUser = await prisma.user.create({
data: { data: {