소스 검색

Createtoken API: Added better description and deleted extra file.

Thanks to magicbelette and xet7 !

Fixes #2887
Lauri Ojansivu 4 년 전
부모
커밋
3774060d32
3개의 변경된 파일7개의 추가작업 그리고 2개의 파일을 삭제
  1. 6 1
      models/cards.js
  2. 1 1
      models/users.js
  3. BIN
      photorec.ses

+ 6 - 1
models/cards.js

@@ -724,7 +724,12 @@ Cards.helpers({
         definition,
         definition,
       };
       };
     });
     });
-    ret.sort((a, b) => a.definition.name !== undefined && b.definition.name !== undefined && a.definition.name.localeCompare(b.definition.name));
+    ret.sort(
+      (a, b) =>
+        a.definition.name !== undefined &&
+        b.definition.name !== undefined &&
+        a.definition.name.localeCompare(b.definition.name),
+    );
     return ret;
     return ret;
   },
   },
 
 

+ 1 - 1
models/users.js

@@ -1768,7 +1768,7 @@ if (Meteor.isServer) {
    *
    *
    * @description Only the admin user (the first user) can call the REST API.
    * @description Only the admin user (the first user) can call the REST API.
    *
    *
-   * @param {string} userId the ID of the user to delete
+   * @param {string} userId the ID of the user to create token for.
    * @return_type {_id: string}
    * @return_type {_id: string}
    */
    */
   JsonRoutes.add('POST', '/api/createtoken/:userId', function(req, res) {
   JsonRoutes.add('POST', '/api/createtoken/:userId', function(req, res) {

BIN
photorec.ses