Auto-generate conf numbers for user export mode

This commit is contained in:
Bryan Ashby 2020-05-03 10:42:57 -06:00
parent 6e0f47b1e9
commit b32dae9b48
No known key found for this signature in database
GPG key ID: B49EB437951D2542
3 changed files with 74 additions and 8 deletions

View file

@ -546,14 +546,10 @@ function exportQWKPacket() {
// if they were not explicitly supplied
if (!areaTags.length) {
const {
getAvailableMessageConferences,
getAvailableMessageAreasByConfTag
getAllAvailableMessageAreaTags
} = require('../../core/message_area');
const confTags = Object.keys(getAvailableMessageConferences(null, { noClient : true }));
confTags.forEach( confTag => {
areaTags = areaTags.concat(Object.keys(getAvailableMessageAreasByConfTag(confTag)));
});
areaTags = getAllAvailableMessageAreaTags();
}
return callback(null, user);
},