@dmptool/utils 1.0.19 → 1.0.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/maDMP.js +2 -2
  2. package/package.json +1 -1
package/dist/maDMP.js CHANGED
@@ -397,7 +397,7 @@ const loadNarrativeTemplateInfo = async (rdsConnectionParams, planId) => {
397
397
  };
398
398
  narrative.section.push(curSection);
399
399
  }
400
- const hasAnswer = row.answerJson !== undefined && row.answerJson !== null;
400
+ const hasAnswer = row.answerJSON !== undefined && row.answerJSON !== null;
401
401
  // Every row in the results represents a single question/answer pair
402
402
  curSection.question.push({
403
403
  id: row.questionId,
@@ -406,7 +406,7 @@ const loadNarrativeTemplateInfo = async (rdsConnectionParams, planId) => {
406
406
  answer: hasAnswer
407
407
  ? {
408
408
  id: row.answerId,
409
- json: JSON.parse(row.answerJson)
409
+ json: row.answerJSON
410
410
  }
411
411
  : undefined
412
412
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dmptool/utils",
3
- "version": "1.0.19",
3
+ "version": "1.0.21",
4
4
  "description": "Helper/Utility functions for use in the DMP Tool services. Particularly AWS tooling and maDMP serialization",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",