Thanks to magicbelette and xet7 ! Fixes #2887
@@ -724,7 +724,12 @@ Cards.helpers({
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;
},
@@ -1768,7 +1768,7 @@ if (Meteor.isServer) {
*
* @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}
*/
JsonRoutes.add('POST', '/api/createtoken/:userId', function(req, res) {