summaryrefslogtreecommitdiff
path: root/src/api/endpoints/posts/context.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/api/endpoints/posts/context.ts')
-rw-r--r--src/api/endpoints/posts/context.ts6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/api/endpoints/posts/context.ts b/src/api/endpoints/posts/context.ts
index 5b0a56f356..7bccecfb98 100644
--- a/src/api/endpoints/posts/context.ts
+++ b/src/api/endpoints/posts/context.ts
@@ -1,5 +1,3 @@
-'use strict';
-
/**
* Module dependencies
*/
@@ -14,9 +12,7 @@ import serialize from '../../serializers/post';
* @param {any} user
* @return {Promise<any>}
*/
-module.exports = (params, user) =>
- new Promise(async (res, rej) =>
-{
+module.exports = (params, user) => new Promise(async (res, rej) => {
// Get 'post_id' parameter
const [postId, postIdErr] = it(params.post_id, 'id', true);
if (postIdErr) return rej('invalid post_id param');