From eaace9a81d797971cd2c3621f76d6228f24a73c0 Mon Sep 17 00:00:00 2001 From: Bryan Ashby Date: Wed, 2 Jan 2019 20:07:46 -0700 Subject: [PATCH] TODO notes --- core/scanner_tossers/ftn_bso.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/core/scanner_tossers/ftn_bso.js b/core/scanner_tossers/ftn_bso.js index 47184ea9..3fec4fc3 100644 --- a/core/scanner_tossers/ftn_bso.js +++ b/core/scanner_tossers/ftn_bso.js @@ -1677,7 +1677,7 @@ function FTNMessageScanTossModule() { localAreaTags : self.getLocalAreaTagsForTic(), }; - return ticFileInfo.validate(config, (err, localInfo) => { + ticFileInfo.validate(config, (err, localInfo) => { if(err) { Log.trace( { reason : err.message }, 'Validation failure'); return callback(err); @@ -1893,7 +1893,7 @@ function FTNMessageScanTossModule() { ], (err, localInfo) => { if(err) { - Log.error( { error : err.message, reason : err.reason, tic : ticFileInfo.filePath }, 'Failed import/update TIC record' ); + Log.error( { error : err.message, reason : err.reason, tic : ticFileInfo.filePath }, 'Failed to import/update TIC' ); } else { Log.info( { tic : ticFileInfo.path, file : ticFileInfo.filePath, area : localInfo.areaTag }, @@ -2109,6 +2109,8 @@ FTNMessageScanTossModule.prototype.processTicFilesInDirectory = function(importD async.eachSeries(ticFilesInfo, (ticFileInfo, nextTicInfo) => { self.processSingleTicFile(ticFileInfo, err => { if(err) { + // :TODO: If ENOENT -OR- failed due to CRC mismatch: create a pending state & try again later; the "attached" file may not yet be ready. + // archive rejected TIC stuff (.TIC + attach) async.each( [ ticFileInfo.path, ticFileInfo.filePath ], (path, nextPath) => { if(!path) { // possibly rejected due to "File" not existing/etc.