Very slight display improvements, include conf in info

This commit is contained in:
Bryan Ashby 2020-05-12 09:12:55 -06:00
parent fbec46d1b9
commit f63464c501
No known key found for this signature in database
GPG key ID: B49EB437951D2542
2 changed files with 10 additions and 7 deletions

View file

@ -4,6 +4,7 @@ const Message = require('./message');
const { Errors } = require('./enig_error');
const {
getMessageAreaByTag,
getMessageConferenceByTag,
hasMessageConfAndAreaRead,
getAllAvailableMessageAreaTags,
} = require('./message_area');
@ -216,7 +217,7 @@ exports.getModule = class MessageBaseQWKExport extends MenuModule {
message,
step : 'message',
total : messageIds.length,
status : `Writing message ${current} / ${messageIds.length}`,
status : `${_.truncate(message.subject, { length : 25 })} (${current} / ${messageIds.length})`,
};
progressHandler(progress, err => {
@ -276,7 +277,8 @@ exports.getModule = class MessageBaseQWKExport extends MenuModule {
});
async.eachSeries(userExportAreas, (exportArea, nextExportArea) => {
const area = getMessageAreaByTag(exportArea.areaTag);
if (!area) {
const conf = getMessageConferenceByTag(area.confTag);
if (!area || !conf) {
// :TODO: remove from user properties - this area does not exist
this.client.log.warn({ areaTag : exportArea.areaTag }, 'Cannot QWK export area as it does not exist');
return nextExportArea(null);
@ -288,9 +290,10 @@ exports.getModule = class MessageBaseQWKExport extends MenuModule {
}
const progress = {
conf,
area,
step : 'next_area',
status : `Gathering messages in ${area.name}...`,
status : `Gathering in ${conf.name} - ${area.name}...`,
};
progressHandler(progress, err => {