diff --git a/storage/file.js b/storage/file.js index a4e52825a..2fb4f095c 100644 --- a/storage/file.js +++ b/storage/file.js @@ -478,11 +478,13 @@ var archiveChannel = function (env, channelName, cb) { }); }; +// restore a channel and its metadata from the archive +// to the appropriate location in the live database var unarchiveChannel = function (env, channelName, cb) { // very much like 'archiveChannel' but in the opposite direction // the file is currently archived - var channelPath = mkArchivePath(env, channelName); + var channelPath = mkPath(env, channelName); var metadataPath = mkMetadataPath(env, channelName); // don't call the callback multiple times