You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -135,26 +154,28 @@ async function processEmailXml(cloudEvent: any): Promise<void> {
135
154
}
136
155
catch(error){
137
156
console.log("There was an error inserting records.",error);
138
-
Ac.socialiseIt(`There was an error inserting invoices to the data warehouse, data my be inaccurate for these suppliers: ${suppliers.join(", ")}`);
157
+
Ac.socialiseIt(`:thinking_face: There was an error inserting invoices to the data warehouse, data my be inaccurate for these suppliers: ${suppliers.join(", ")}`);
console.log("There was an error updating labels.",error);
147
-
Ac.socialiseIt(`There was an error updating \`ops/in-queue\` and :white_check_mark labels, which may cause period duplicate records for these suppliers: ${suppliers.join(", ")}`);
165
+
console.log(`${logId}: There was an error updating labels.`,error);
166
+
Ac.socialiseIt(`:thinking_face: There was an error updating \`ops/in-queue\` and \`ops/done\` labels, which may cause duplicate records for these suppliers: ${suppliers.join(", ")}. (${batchSequence})`);
Ac.socialiseIt(`Processed ${messages.length} tagged email(s) and imported ${invoiceRows.length} NFe documents for these suppliers: ${suppliers.join(", ")}`);
Ac.socialiseIt(`:white_check_mark: Processed ${messagesProcessed} tagged email(s) and imported ${invoiceRows.length} NFe documents for these suppliers: ${suppliers.join(", ")}. The cloud function ran for about ${timePassed} seconds, with batch sequence ${batchSequence}.`);
152
173
}
153
174
else{
154
175
console.log(`${logId}: Nothing found process.`);
176
+
Ac.socialiseIt(`:white_check_mark: No documents found to process.`);
0 commit comments