Sfoglia il codice sorgente

BugFix export empty collection

Yuki Takei 6 anni fa
parent
commit
ed8f47130c
1 ha cambiato i file con 4 aggiunte e 0 eliminazioni
  1. 4 0
      src/server/service/export.js

+ 4 - 0
src/server/service/export.js

@@ -139,6 +139,10 @@ class ExportService {
         callback();
       },
       final(callback) {
+        // write beginning brace
+        if (isFirst) {
+          this.push('[');
+        }
         // write ending brace
         this.push(']');
         callback();