Yuki Takei %!s(int64=8) %!d(string=hai) anos
pai
achega
9f930babaa
Modificáronse 1 ficheiros con 4 adicións e 3 borrados
  1. 4 3
      packages/growi-plugin-lsx/src/lib/routes/lsx.js

+ 4 - 3
packages/growi-plugin-lsx/src/lib/routes/lsx.js

@@ -70,13 +70,14 @@ class Lsx {
    *
    *
    * @memberOf Lsx
    * @memberOf Lsx
    */
    */
-  static addReverseCondition(query, pagePath, optionsReverse){
+  static addReverseCondition(query, pagePath, optionsReverse) {
     if (optionsReverse !== 'true' && optionsReverse !== 'false') {
     if (optionsReverse !== 'true' && optionsReverse !== 'false') {
       throw new Error(`specified reverse is '${optionsReverse}' : reverse are must be 'true' or 'false'`);
       throw new Error(`specified reverse is '${optionsReverse}' : reverse are must be 'true' or 'false'`);
     }
     }
-    if(optionsReverse === 'true'){
+    if (optionsReverse === 'true') {
       return query.sort({path: -1});
       return query.sort({path: -1});
-    }else{
+    }
+    else {
       return query.sort({path: 1});
       return query.sort({path: 1});
     }
     }
   }
   }