Parcourir la source

BugFix export empty collection

Yuki Takei il y a 6 ans
Parent
commit
ed8f47130c
1 fichiers modifiés avec 4 ajouts et 0 suppressions
  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();