use the correct path for channel data when restoring logs from the archive
This commit is contained in:
parent
238d547a46
commit
2aebadcff3
@ -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) {
|
var unarchiveChannel = function (env, channelName, cb) {
|
||||||
// very much like 'archiveChannel' but in the opposite direction
|
// very much like 'archiveChannel' but in the opposite direction
|
||||||
|
|
||||||
// the file is currently archived
|
// the file is currently archived
|
||||||
var channelPath = mkArchivePath(env, channelName);
|
var channelPath = mkPath(env, channelName);
|
||||||
var metadataPath = mkMetadataPath(env, channelName);
|
var metadataPath = mkMetadataPath(env, channelName);
|
||||||
|
|
||||||
// don't call the callback multiple times
|
// don't call the callback multiple times
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user