mizozobu 6 years ago
parent
commit
eccac8fce9
1 changed files with 1 additions and 5 deletions
  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);
         })