@measurequick/measurequick-report-generator 1.2.117 → 1.2.118
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
|
@@ -101,12 +101,15 @@ export async function getReport(payload) {
|
|
|
101
101
|
let correctiveMeasuresBase64 = await correctiveMeasures.getReport(payload);
|
|
102
102
|
const correctiveMeasuresDoc = correctiveMeasuresBase64 ? await PDFDocument.load(util._base64ToArrayBuffer(correctiveMeasuresBase64)) : false;
|
|
103
103
|
const [_correctiveMeasuresDoc] = correctiveMeasuresDoc ? await coreDoc.copyPages(correctiveMeasuresDoc, [0]) : false;
|
|
104
|
+
console.log(_correctiveMeasuresDoc);
|
|
104
105
|
if (correctiveMeasuresDoc.getPages().length > 1) {
|
|
105
106
|
const [_correctiveMeasuresDocPage2] = correctiveMeasuresDoc ? await coreDoc.copyPages(correctiveMeasuresDoc, [1]) : false;
|
|
107
|
+
console.log(_correctiveMeasuresDocPage2);
|
|
106
108
|
if (_correctiveMeasuresDoc && _correctiveMeasuresDocPage2) _correctiveMeasuresDoc.concat(_correctiveMeasuresDocPage2);
|
|
107
109
|
}
|
|
110
|
+
console.log(_correctiveMeasuresDoc);
|
|
108
111
|
if (_correctiveMeasuresDoc) coreDoc.insertPage(coreDoc.getPages().length, _correctiveMeasuresDoc);
|
|
109
|
-
} catch (e) {}
|
|
112
|
+
} catch (e) { console.log(e) }
|
|
110
113
|
|
|
111
114
|
/******** PHOTOS (X PAGES) *********/
|
|
112
115
|
try {
|