mizozobu 6 år sedan
förälder
incheckning
a654740c96
1 ändrade filer med 8 tillägg och 1 borttagningar
  1. 8 1
      src/server/service/export.js

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

@@ -33,7 +33,7 @@ class ExportService {
    * @memberOf ExportService
    * @memberOf ExportService
    * @param {string} file path to json file to be written
    * @param {string} file path to json file to be written
    * @param {readStream} readStream  read stream
    * @param {readStream} readStream  read stream
-   * @param {int} [total] number of target items (optional)
+   * @param {number} [total] number of target items (optional)
    */
    */
   async export(file, readStream, total) {
   async export(file, readStream, total) {
     const ws = fs.createWriteStream(file, { encoding: this.encoding });
     const ws = fs.createWriteStream(file, { encoding: this.encoding });
@@ -62,6 +62,13 @@ class ExportService {
     );
     );
   }
   }
 
 
+  /**
+   * log export progress
+   *
+   * @memberOf ExportService
+   * @param {number} n number of items exported
+   * @param {number} [total] number of target items (optional)
+   */
   logProgress(n, total) {
   logProgress(n, total) {
     let output;
     let output;
     if (total) {
     if (total) {