From ddf4a6a7843f7ade177349de1483f1d1a4e6ede9 Mon Sep 17 00:00:00 2001 From: ansuz Date: Thu, 13 Jun 2019 12:07:35 +0200 Subject: [PATCH] pass the correct path to 'listChannels' for 'listArchivedChannels' --- storage/file.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/storage/file.js b/storage/file.js index 01d9e5401..58a10ba46 100644 --- a/storage/file.js +++ b/storage/file.js @@ -253,7 +253,7 @@ var listChannels = function (root, handler, cb) { // otherwise throw it on the pile sema.take(function (give) { - var next = give(); + var next = w(give()); Fs.stat(filepath, w(function (err, stats) { if (err) { return void handler(err); @@ -597,7 +597,7 @@ module.exports.create = function ( listChannels(env.root, handler, cb); }, listArchivedChannels: function (handler, cb) { - listChannels(env.archiveRoot, handler, cb); + listChannels(Path.join(env.archiveRoot, 'datastore'), handler, cb); }, archiveChannel: function (channelName, cb) { if (!isValidChannelId(channelName)) { return void cb(new Error('EINVAL')); }