@measurequick/measurequick-report-generator 1.4.3 → 1.4.4

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@measurequick/measurequick-report-generator",
3
- "version": "1.4.3",
3
+ "version": "1.4.4",
4
4
  "description": "Generates PDF documents for various MeasureQuick applications.",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -7,7 +7,7 @@ export async function getReport(payload) {
7
7
  try {
8
8
  // fetch and load form
9
9
 
10
- const pdf = payload.certification_type == 1 ? pdf1 : pdf2;
10
+ const pdf = payload.certificate.certificateType == 1 ? pdf1 : pdf2;
11
11
  const formPdfBytes = util._base64ToArrayBuffer(pdf.base64);
12
12
  const pdfDoc = await PDFDocument.load(formPdfBytes);
13
13
 
@@ -7,7 +7,7 @@ import * as util from '../util.js';
7
7
  export async function getReport(payload) {
8
8
  try {
9
9
  // fetch and load form
10
- var pdf = payload.equipment_type == 1 ? pdf1 : pdf2;
10
+ var pdf = payload.certificate.equipmentType == 1 ? pdf1 : pdf2;
11
11
  const formPdfBytes = util._base64ToArrayBuffer(pdf.base64);
12
12
  const pdfDoc = await PDFDocument.load(formPdfBytes);
13
13