Fix DRY_RUN issue

This commit is contained in:
yflory 2024-01-09 15:09:41 +01:00
parent ff3a40aa31
commit d92636bcf8
1 changed files with 1 additions and 0 deletions

View File

@ -760,6 +760,7 @@ module.exports = function (Env, cb) {
}).nThen(function (w) {
if (Env.DRY_RUN) {
archived++;
w.abort();
return void Log.info("EVICT_CHANNEL_ARCHIVAL_DRY_RUN", item.channel, cb);
}
return void store.archiveChannel(item.channel, 'INACTIVE', w(function (err) {