Add upload logging.

This commit is contained in:
Patrick Fic
2022-02-10 08:35:49 -08:00
parent bd9c2cd0af
commit 139dedd3e7
3 changed files with 23 additions and 7 deletions

View File

@@ -123,12 +123,12 @@ exports.default = async (req, res) => {
}
}
for (const xmlObj of allxmlsToUpload) {
fs.writeFileSync(`./logs/${xmlObj.filename}`, xmlObj.xml);
}
// for (const xmlObj of allxmlsToUpload) {
// fs.writeFileSync(`./logs/${xmlObj.filename}`, xmlObj.xml);
// }
res.json(allxmlsToUpload);
return;
// res.json(allxmlsToUpload);
// return;
let sftp = new Client();
sftp.on("error", (errors) =>