From 3c1b92baa1ac15c23fe63e2f50739105252ca516 Mon Sep 17 00:00:00 2001 From: syuilo Date: Sat, 4 Mar 2017 04:28:38 +0900 Subject: Follow linter --- src/api/endpoints/aggregation/users/post.ts | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'src/api/endpoints/aggregation/users/post.ts') diff --git a/src/api/endpoints/aggregation/users/post.ts b/src/api/endpoints/aggregation/users/post.ts index b62dd6ec98..a4d9e2ddfb 100644 --- a/src/api/endpoints/aggregation/users/post.ts +++ b/src/api/endpoints/aggregation/users/post.ts @@ -1,5 +1,3 @@ -'use strict'; - /** * Module dependencies */ @@ -13,9 +11,7 @@ import Post from '../../../models/post'; * @param {any} params * @return {Promise} */ -module.exports = (params) => - new Promise(async (res, rej) => -{ +module.exports = (params) => new Promise(async (res, rej) => { // Get 'user_id' parameter const [userId, userIdErr] = it(params.user_id).expect.id().required().qed(); if (userIdErr) return rej('invalid user_id param'); @@ -95,7 +91,7 @@ module.exports = (params) => )[0]; if (data) { - graph.push(data) + graph.push(data); } else { graph.push({ date: { @@ -106,8 +102,8 @@ module.exports = (params) => posts: 0, reposts: 0, replies: 0 - }) - }; + }); + } } res(graph); -- cgit v1.2.3-freya