pass the correct path to 'listChannels' for 'listArchivedChannels'
This commit is contained in:
parent
7e455e6fce
commit
ddf4a6a784
@ -253,7 +253,7 @@ var listChannels = function (root, handler, cb) {
|
|||||||
|
|
||||||
// otherwise throw it on the pile
|
// otherwise throw it on the pile
|
||||||
sema.take(function (give) {
|
sema.take(function (give) {
|
||||||
var next = give();
|
var next = w(give());
|
||||||
Fs.stat(filepath, w(function (err, stats) {
|
Fs.stat(filepath, w(function (err, stats) {
|
||||||
if (err) {
|
if (err) {
|
||||||
return void handler(err);
|
return void handler(err);
|
||||||
@ -597,7 +597,7 @@ module.exports.create = function (
|
|||||||
listChannels(env.root, handler, cb);
|
listChannels(env.root, handler, cb);
|
||||||
},
|
},
|
||||||
listArchivedChannels: function (handler, cb) {
|
listArchivedChannels: function (handler, cb) {
|
||||||
listChannels(env.archiveRoot, handler, cb);
|
listChannels(Path.join(env.archiveRoot, 'datastore'), handler, cb);
|
||||||
},
|
},
|
||||||
archiveChannel: function (channelName, cb) {
|
archiveChannel: function (channelName, cb) {
|
||||||
if (!isValidChannelId(channelName)) { return void cb(new Error('EINVAL')); }
|
if (!isValidChannelId(channelName)) { return void cb(new Error('EINVAL')); }
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user