Улучшение работы RemoteLib.downloadInpxFile

This commit is contained in:
Book Pauk
2022-10-15 20:59:42 +07:00
parent 0894a38978
commit 9aa9261b6a
5 changed files with 38 additions and 20 deletions

View File

@@ -114,9 +114,10 @@ async function init() {
}
}
} else {
config.inpxFile = `${config.tempDir}/${utils.randomHexString(20)}`;
const RemoteLib = require('./core/RemoteLib');//singleton
const remoteLib = new RemoteLib(config);
config.inpxFile = await remoteLib.downloadInpxFile();
await remoteLib.downloadInpxFile();
}
config.recreateDb = argv.recreate || false;