From 4a862d8fb422fb7d02ede355ca40ce5e457a99a6 Mon Sep 17 00:00:00 2001
From: snehar-nd <sneha@navadhiti.com>
Date: Mon, 27 Dec 2021 19:36:46 +0530
Subject: [PATCH] changed url patch from /content/v4 to collection/v4

---
 src/service/print/dataImporter.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/service/print/dataImporter.js b/src/service/print/dataImporter.js
index 81ede6f..25187a6 100644
--- a/src/service/print/dataImporter.js
+++ b/src/service/print/dataImporter.js
@@ -77,7 +77,7 @@ function getQuestionFromItem(itemID, marks) {
 }
 
 const getQuestionForSection = async (id) => {
-  const url = `${envVariables.baseURL}/action/content/v4/hierarchy/${id}?mode=edit`;
+  const url = `${envVariables.baseURL}/action/collection/v4/hierarchy/${id}?mode=edit`;
   let status;
   return fetch(url)
     .then((r1) => {
@@ -114,7 +114,7 @@ const getQuestionForSection = async (id) => {
 const getData = async (id) => {
   let error = false;
   let errorMsg = "";
-  const url = `${envVariables.baseURL}/action/content/v4/hierarchy/${id}?mode=edit`;
+  const url = `${envVariables.baseURL}/action/collection/v4/hierarchy/${id}?mode=edit`;
   return fetch(url)
     .then((r4) => r4.json())
     .then((r) => {
-- 
GitLab