@measurequick/measurequick-report-generator 1.2.44 → 1.2.46

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.2.44",
3
+ "version": "1.2.46",
4
4
  "description": "Generates PDF documents for various MeasureQuick applications.",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -23,7 +23,7 @@ export async function getReport(payload) {
23
23
  // Process All Photos
24
24
  let previousPhotoSectionName;
25
25
  let docIndex = 0;
26
- let photoSectionKeys = Object.keys(payload.photos);
26
+ let photoSectionKeys = Object.keys(payload.photos.project);
27
27
  if (photoSectionKeys && photoSectionKeys.length > 0) {
28
28
  docs[docIndex] = await PDFDocument.load(util._base64ToArrayBuffer(page.base64));
29
29
  forms[docIndex] = docs[docIndex].getForm();
@@ -32,7 +32,7 @@ export async function getReport(payload) {
32
32
  let photoPosition = 1;
33
33
  for (let pskIndex = 0; pskIndex < photoSectionKeys.length; pskIndex++) { // Iterate over X user-defined photo sections within each photo collection
34
34
  let photoSectionKey = photoSectionKeys[pskIndex];
35
- let photoSection = payload.photos[photoSectionKey];
35
+ let photoSection = payload.photos.project[photoSectionKey];
36
36
  let photoSectionName = photoSection.name;
37
37
  let photos = photoSection.photos;
38
38
  if (photos && photos.length > 0) {