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) { switch (file.type) {
case 'application/pdf': case 'application/pdf':
///////// DELETE THE FOLLOWING CODE ON OCT 22ND //////////////////////
const receiptType = await detectReceiptType(fileBuffer); const receiptType = await detectReceiptType(fileBuffer);
console.log(`receiptType = ${receiptType}`); console.log(`receiptType = ${receiptType}`);
// receipt type is needed to decide if digital signature checking is needed // 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); const receipts = await loadPDF(fileBuffer);
return {receipts, rawData: ''}; return {receipts, rawData: ''};
} else { } else {
///////// END OCT 22ND DELETE BLOCK //////////////////////
imageData = await getImageDataFromPdf(fileBuffer); imageData = await getImageDataFromPdf(fileBuffer);
} }
break; break;