Added documentation around what code to delete Oct. 22nd to turn off old-style QR code generation

This commit is contained in:
Ryan Slobojan 2021-10-10 11:51:27 -04:00
parent d24e218f8c
commit 1ecb61f2ca
1 changed files with 3 additions and 0 deletions

View File

@ -21,6 +21,8 @@ export async function getPayloadBodyFromFile(file: File): Promise<PayloadBody> {
switch (file.type) {
case 'application/pdf':
///////// DELETE THE FOLLOWING CODE ON OCT 22ND //////////////////////
const receiptType = await detectReceiptType(fileBuffer);
console.log(`receiptType = ${receiptType}`);
// receipt type is needed to decide if digital signature checking is needed
@ -29,6 +31,7 @@ export async function getPayloadBodyFromFile(file: File): Promise<PayloadBody> {
const receipts = await loadPDF(fileBuffer);
return {receipts, rawData: ''};
} else {
///////// END OCT 22ND DELETE BLOCK //////////////////////
imageData = await getImageDataFromPdf(fileBuffer);
}
break;