From 359241654b10e856368b81b5306760b86b017c90 Mon Sep 17 00:00:00 2001 From: Bryan Ashby Date: Thu, 21 Jul 2016 21:04:08 -0600 Subject: [PATCH] Case insensitive compare for area tags (#78) --- core/scanner_tossers/ftn_bso.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/core/scanner_tossers/ftn_bso.js b/core/scanner_tossers/ftn_bso.js index 3e72b392..db15b73e 100644 --- a/core/scanner_tossers/ftn_bso.js +++ b/core/scanner_tossers/ftn_bso.js @@ -104,8 +104,9 @@ function FTNMessageScanTossModule() { }; this.getLocalAreaTagByFtnAreaTag = function(ftnAreaTag) { + ftnAreaTag = ftnAreaTag.toUpperCase(); // always compare upper return _.findKey(Config.messageNetworks.ftn.areas, areaConf => { - return areaConf.tag === ftnAreaTag; + return areaConf.tag.toUpperCase() === ftnAreaTag; }); }; @@ -1374,12 +1375,12 @@ FTNMessageScanTossModule.prototype.performExport = function(cb) { self.setAreaLastScanId(areaTag, newLastScanId, callback); } ], - function complete(err) { - nextArea(); + () => { + return nextArea(); } ); }, err => { - cb(err); + return cb(err); }); };