From 36767dfe6d39fdf50056fe96d474e908f52fdf4a Mon Sep 17 00:00:00 2001 From: Shubham Bansal Date: Thu, 23 May 2024 12:14:00 +0530 Subject: [PATCH] Issue #CO-949: question set api update --- src/service/print/printDocxV1.0/dataImporter.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/service/print/printDocxV1.0/dataImporter.js b/src/service/print/printDocxV1.0/dataImporter.js index 43dda1ca..293136e3 100644 --- a/src/service/print/printDocxV1.0/dataImporter.js +++ b/src/service/print/printDocxV1.0/dataImporter.js @@ -15,7 +15,7 @@ const fields = "body,primaryCategory,mimeType,qType,answer,templateId,responseDeclaration,interactionTypes,interactions,name,solutions,editorState,media,name,board,medium,gradeLevel,subject,topic,learningOutcome,maxScore,bloomsLevel,author,copyright,license,instructions"; const QUE_READ_URL= `${envVariables.SUNBIRD_ASSESSMENT_SERVICE_BASE_URL}/question/v4/read/`; -const QS_HIERARCHY_READ_URL = `${envVariables.SUNBIRD_ASSESSMENT_SERVICE_BASE_URL}/questionset/v4/hierarchy/`; +const QS_HIERARCHY_READ_URL = `${envVariables.SUNBIRD_ASSESSMENT_SERVICE_BASE_URL}/questionset/v5/hierarchy/`; const getQuestionForSet = async (id) => { @@ -47,7 +47,7 @@ const getQuestionSet = async (config) => { }; return axios(request).then(async (r) => { - const data = r.data.result.questionSet; + const data = r.data.result.questionset; let sections; if (data && "children" in data) sections = data.children; else {