diff --git a/src/app/api/(verification)/verify-mail/route.ts b/src/app/api/(verification)/verify-mail/route.ts
index eb56fda..068cb8c 100644
--- a/src/app/api/(verification)/verify-mail/route.ts
+++ b/src/app/api/(verification)/verify-mail/route.ts
@@ -3,64 +3,64 @@ import getErrorMessage from "@/utils/getErrorMessage";
import { NextRequest, NextResponse } from "next/server";
export async function POST(req: NextRequest) {
- const body = await req.json();
- console.log(body);
- const { identifier, otp } = body;
- if (!identifier || !otp) {
- return NextResponse.json(
- { message: "Identifier and OTP are required", status: 400 },
- { status: 400 },
- );
- }
- try {
- await prisma.$transaction(async (tx) => {
- // const request = await tx.verificationRequest.findFirst({
- // where: {
- // identifier,
- // otp,
- // expires: {
- // gte: new Date(),
- // },
- // },
- // orderBy: {
- // created_at: "desc",
- // },
- // });
- // if (!request) {
- // throw new Error("Verification failed: Invalid or expired OTP");
- // }
- // await tx.form.updateMany({
- // where: {
- // email: identifier,
- // },
- // data: {
- // emailVerified: true,
- // },
- // });
- // await tx.verificationRequest.deleteMany({
- // where: {
- // identifier,
- // },
- // });
- });
+ const body = await req.json();
+ console.log(body);
+ const { identifier, otp } = body;
+ if (!identifier || !otp) {
+ return NextResponse.json(
+ { message: "Identifier and OTP are required", status: 400 },
+ { status: 400 }
+ );
+ }
+ // try {
+ // await prisma.$transaction(async (tx) => {
+ // const request = await tx.verificationRequest.findFirst({
+ // where: {
+ // identifier,
+ // otp,
+ // expires: {
+ // gte: new Date(),
+ // },
+ // },
+ // orderBy: {
+ // created_at: "desc",
+ // },
+ // });
+ // if (!request) {
+ // throw new Error("Verification failed: Invalid or expired OTP");
+ // }
+ // await tx.form.updateMany({
+ // where: {
+ // email: identifier,
+ // },
+ // data: {
+ // emailVerified: true,
+ // },
+ // });
+ // await tx.verificationRequest.deleteMany({
+ // where: {
+ // identifier,
+ // },
+ // });
+ // });
return NextResponse.json(
- {
- message: "OTP verified successfully back!",
- status: 200,
- },
- { status: 200 },
- );
- } catch (error: unknown) {
- const errorMessage = getErrorMessage(error);
- console.error("OTP verification failed:", errorMessage);
- return NextResponse.json(
- { message: errorMessage, status: 400 },
- { status: 400 },
+ {
+ message: "OTP verified successfully back!",
+ status: 200,
+ },
+ { status: 200 }
);
- }
+ // catch (error: unknown) {
+ // const errorMessage = getErrorMessage(error);
+ // console.error("OTP verification failed:", errorMessage);
+ // return NextResponse.json(
+ // { message: errorMessage, status: 400 },
+ // { status: 400 },
+ // );
+ // }
}
export async function GET() {
- return NextResponse.json({ message: "Hello from the Send mail!" });
+ return NextResponse.json({ message: "Hello from the Send mail!" });
}
diff --git a/src/app/page.tsx b/src/app/page.tsx
index 00a6a5b..90c8fe9 100644
--- a/src/app/page.tsx
+++ b/src/app/page.tsx
@@ -6,6 +6,7 @@ import StackedCards from "@/components/stacking-cards/stacked";
import { PreviousEdition } from "@/components/common/Container-Scroll";
import About from "@/components/common/About";
import Team from "@/components/common/Team-Section";
+import { CtaSection } from "@/components/common/cta-section";
import Performers from "@/components/widget/performers";
export default function Home() {
@@ -35,6 +36,7 @@ export default function Home() {
The Team
+ Celebrate the joy of accomplishment with an app designed to track your progress and + motivate your efforts. +
+ +