Skip to content

Commit

Permalink
Issue #CO-949 merge:Merge pull request #346 from shubhambansaltarento…
Browse files Browse the repository at this point in the history
…/bug/printPreview

Issue #CO-949: question set api update
  • Loading branch information
vinukumar-vs authored May 23, 2024
2 parents 8fb4a99 + 36767df commit fd0b7dc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/service/print/printDocxV1.0/dataImporter.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit fd0b7dc

Please sign in to comment.