Merged in release/2024-11-08 (pull request #1900)

Release/2024 11 08 IO-2921 IO-3025
This commit is contained in:
Allan Carr
2024-11-09 06:28:56 +00:00
2 changed files with 24 additions and 26 deletions

View File

@@ -76,7 +76,7 @@ exports.default = async (req, res) => {
} else { } else {
await uploadViaSFTP(allxmlsToUpload); await uploadViaSFTP(allxmlsToUpload);
} }
}
sendServerEmail({ sendServerEmail({
subject: `Autohouse Report ${moment().format("MM-DD-YY")}`, subject: `Autohouse Report ${moment().format("MM-DD-YY")}`,
text: `Errors: ${allErrors.map((e) => JSON.stringify(e, null, 2))} text: `Errors: ${allErrors.map((e) => JSON.stringify(e, null, 2))}
@@ -89,7 +89,6 @@ exports.default = async (req, res) => {
logger.log("autohouse-end", "DEBUG", "api", null, null); logger.log("autohouse-end", "DEBUG", "api", null, null);
res.sendStatus(200); res.sendStatus(200);
}
} catch (error) { } catch (error) {
logger.log("autohouse-shopsToProcess-error", "ERROR", "api", null, { error: error.message, stack: error.stack }); logger.log("autohouse-shopsToProcess-error", "ERROR", "api", null, { error: error.message, stack: error.stack });
res.status(500).json({ error: error.message, stack: error.stack }); res.status(500).json({ error: error.message, stack: error.stack });

View File

@@ -68,7 +68,7 @@ exports.default = async (req, res) => {
} else { } else {
await uploadViaSFTP(allcsvsToUpload); await uploadViaSFTP(allcsvsToUpload);
} }
}
sendServerEmail({ sendServerEmail({
subject: `Chatter Report ${moment().format("MM-DD-YY")}`, subject: `Chatter Report ${moment().format("MM-DD-YY")}`,
text: `Errors: ${allErrors.map((e) => JSON.stringify(e, null, 2))} text: `Errors: ${allErrors.map((e) => JSON.stringify(e, null, 2))}
@@ -81,7 +81,6 @@ exports.default = async (req, res) => {
logger.log("chatter-end", "DEBUG", "api", null, null); logger.log("chatter-end", "DEBUG", "api", null, null);
res.sendStatus(200); res.sendStatus(200);
}
} catch (error) { } catch (error) {
logger.log("chatter-shopsToProcess-error", "ERROR", "api", null, { error: error.message, stack: error.stack }); logger.log("chatter-shopsToProcess-error", "ERROR", "api", null, { error: error.message, stack: error.stack });
res.status(500).json({ error: error.message, stack: error.stack }); res.status(500).json({ error: error.message, stack: error.stack });