mizozobu 6 лет назад
Родитель
Сommit
eccac8fce9
1 измененных файлов с 1 добавлено и 5 удалено
  1. 1 5
      src/server/service/export.js

+ 1 - 5
src/server/service/export.js

@@ -45,12 +45,8 @@ class ExportService {
     await streamToPromise(
       readStream
         .on('data', (chunk) => {
-          if (n !== 0) {
-            ws.write(',');
-          }
-
+          if (n !== 0) ws.write(',');
           ws.write(JSON.stringify(chunk));
-
           n++;
           this.logProgress(n, total);
         })