From b3b727b53810d8e6b8f291d07865b4d62e67ce71 Mon Sep 17 00:00:00 2001 From: Rushikesh-Sonawane99 Date: Thu, 12 Sep 2024 20:52:07 +0530 Subject: [PATCH] Issue #PS-000 chore: Updated .env --- .env | 1 - src/components/FrameworkCategories.tsx | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/.env b/.env index cb4508d3..446fc325 100644 --- a/.env +++ b/.env @@ -5,4 +5,3 @@ NEXT_PUBLIC_NOTIFICATION_BASE_URL=https://notification.prathamdigital.org # NEXT_PUBLIC_NOTIFICATION_BASE_URL=https://qa.prathamteacherapp.tekdinext.com/notification-service NEXT_PUBLIC_COURSE_PLANNER_API_URL=https://courseplan.tekdinext.com/project/v1 NEXT_PUBLIC_SUNBIRDSAAS_API_URL=https://sunbirdsaas.com -NEXT_PUBLIC_FRAMEWORK_API_URL=https://sunbirdsaas.com/api diff --git a/src/components/FrameworkCategories.tsx b/src/components/FrameworkCategories.tsx index 324cedb5..9c731846 100644 --- a/src/components/FrameworkCategories.tsx +++ b/src/components/FrameworkCategories.tsx @@ -79,7 +79,7 @@ const FrameworkCategories: React.FC = ({ const handleBMGS = async () => { const userStateName = localStorage.getItem('userStateName'); try { - const url = `${process.env.NEXT_PUBLIC_FRAMEWORK_API_URL}/framework/v1/read/${frameworkId}`; + const url = `${process.env.NEXT_PUBLIC_SUNBIRDSAAS_API_URL}/api/framework/v1/read/${frameworkId}`; const boardData = await fetch(url).then((res) => res.json()); const frameworks = boardData?.result?.framework; setFramework(frameworks);