summaryrefslogtreecommitdiff
path: root/src/api/endpoints/users/recommendation.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/api/endpoints/users/recommendation.ts')
-rw-r--r--src/api/endpoints/users/recommendation.ts6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/api/endpoints/users/recommendation.ts b/src/api/endpoints/users/recommendation.ts
index c37ae4c978..f502f41269 100644
--- a/src/api/endpoints/users/recommendation.ts
+++ b/src/api/endpoints/users/recommendation.ts
@@ -1,5 +1,3 @@
-'use strict';
-
/**
* Module dependencies
*/
@@ -15,9 +13,7 @@ import getFriends from '../../common/get-friends';
* @param {any} me
* @return {Promise<any>}
*/
-module.exports = (params, me) =>
- new Promise(async (res, rej) =>
-{
+module.exports = (params, me) => new Promise(async (res, rej) => {
// Get 'limit' parameter
const [limit, limitErr] = it(params.limit).expect.number().range(1, 100).default(10).qed();
if (limitErr) return rej('invalid limit param');