Merge branch 'release/0.8.2-2'

This commit is contained in:
Book Pauk
2020-01-21 16:56:12 +07:00
2 changed files with 4 additions and 5 deletions

View File

@@ -47,10 +47,6 @@ class WorkerController extends BaseController {
state = this.workerState.getState(request.workerId);
if (!state) break;
if (i == 0) {
state = Object.assign({dummy: '0'.repeat(1024)}, state);
}
res.write(splitter + JSON.stringify(state));
res.flush();

View File

@@ -212,7 +212,10 @@ class ReaderWorker {
while (i < files.length && size > maxSize) {
const file = files[i];
const oldFile = `${dir}/${file.name}`;
if (this.remoteWebDavStorage) {
//отправляем только this.config.tempPublicDir
//TODO: убрать в будущем, т.к. уже делается ленивое сохранение compFilename в удаленном хранилище
if (this.remoteWebDavStorage && dir === this.config.tempPublicDir) {
try {
//log(`remoteWebDavStorage.putFile ${path.basename(oldFile)}`);
await this.remoteWebDavStorage.putFile(oldFile);