diff --git a/package.json b/package.json index 0f6a9c5..f84f4ea 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@qlever-llc/fl-sync", - "version": "1.4.7", + "version": "1.4.8", "description": "A Trellis microservice to sync Food Logiq data to a Trellis cloud", "main": "dist/index.ts", "scripts": { diff --git a/src/index.ts b/src/index.ts index edafd2c..64ed1f5 100644 --- a/src/index.ts +++ b/src/index.ts @@ -593,7 +593,8 @@ export async function initialize({ function prepEmail() { const date = moment().subtract(1, 'day').format('YYYY-MM-DD'); if (!REPORT_EMAIL) throw new Error('REPORT_EMAIL is required for prepEmail'); - if (!REPORT_REPLYTO_EMAIL) throw new Error('REPORT_REPLYTO_EMAIL is required for prepEmail'); + if (!REPORT_REPLYTO_EMAIL) + throw new Error('REPORT_REPLYTO_EMAIL is required for prepEmail'); return { from: 'noreply@trellis.one', to: REPORT_CC_EMAIL ? [REPORT_EMAIL, REPORT_CC_EMAIL] : [REPORT_EMAIL], diff --git a/src/mirrorWatch.ts b/src/mirrorWatch.ts index cd1ec2d..d3ab54e 100644 --- a/src/mirrorWatch.ts +++ b/src/mirrorWatch.ts @@ -577,6 +577,7 @@ export async function postTpDocument({ path: `/${docId}/_meta`, data: { vdoc: { pdf: { [pdfKey]: { _id: pdfId } } }, + shared: 'incoming', }, }); trace( diff --git a/src/reportConfig.ts b/src/reportConfig.ts index 531fe6e..5f52ac7 100644 --- a/src/reportConfig.ts +++ b/src/reportConfig.ts @@ -53,7 +53,6 @@ export const tpReportConfig: ReportConfig = { 'FL Address': '/config/fl-business/business/address/addressLineOne', 'FL City': '/config/fl-business/business/address/city', 'FL State': '/config/fl-business/business/address/region', - 'FL ID': '/config/fl-business/business/_id', 'FL Link': '/config/link', 'Error Message': '/fl-business-incomplete-reason', },