From 898b0eb8ecf2fe01103ed12e582aa253dcb6fb98 Mon Sep 17 00:00:00 2001 From: Anand Suthar Date: Tue, 2 Jul 2024 23:18:28 +0530 Subject: [PATCH] fix : import alias errors --- app/api/auth/verifyotp/route.ts | 3 +-- app/api/payment/create-order/route.ts | 2 +- app/layouts/LandingPage/components/features/index.tsx | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/app/api/auth/verifyotp/route.ts b/app/api/auth/verifyotp/route.ts index 51e759c1..dd5bf7b8 100644 --- a/app/api/auth/verifyotp/route.ts +++ b/app/api/auth/verifyotp/route.ts @@ -59,9 +59,8 @@ async function checkOTP(body: bodyType, req: Request) { return Response.json({ message: "ok" }, { status: 200 }); } - // retrieves a user from the database based on email and role -export async function getUserModel(email: string, role: string) { +async function getUserModel(email: string, role: string) { const projection = { _id: 0, username: 1, diff --git a/app/api/payment/create-order/route.ts b/app/api/payment/create-order/route.ts index e7b7df3f..19261324 100644 --- a/app/api/payment/create-order/route.ts +++ b/app/api/payment/create-order/route.ts @@ -1,5 +1,5 @@ import { NextRequest } from "next/server"; -import { razorpay } from "@/app/lib/razorpay"; +import { razorpay } from "@lib/razorpay"; export async function POST(request: NextRequest) { const { amount, currency } = (await request.json()) as { diff --git a/app/layouts/LandingPage/components/features/index.tsx b/app/layouts/LandingPage/components/features/index.tsx index 6ab5aaaf..5393597e 100644 --- a/app/layouts/LandingPage/components/features/index.tsx +++ b/app/layouts/LandingPage/components/features/index.tsx @@ -1,5 +1,5 @@ import { Card } from "@nextui-org/react"; -import { projectFeatures } from "@/app/utils/constants"; +import { projectFeatures } from "@utils/constants"; import { MdOutlineManageAccounts, MdOutlineDocumentScanner,