Case insensitive compare for area tags (#78)

This commit is contained in:
Bryan Ashby 2016-07-21 21:04:08 -06:00
parent 7b73171d5c
commit 359241654b
1 changed files with 5 additions and 4 deletions

View File

@ -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);
});
};