From 2aebadcff389c1289842741dbc56ad697de72cba Mon Sep 17 00:00:00 2001 From: ansuz Date: Wed, 21 Aug 2019 12:13:39 +0200 Subject: [PATCH] use the correct path for channel data when restoring logs from the archive --- storage/file.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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