summaryrefslogtreecommitdiff
path: root/src/api/endpoints/aggregation/posts/repost.ts
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2017-05-24 20:50:17 +0900
committersyuilo <syuilotan@yahoo.co.jp>2017-05-24 20:50:17 +0900
commitcaeba1197c4b66e10614ffbddce0a2e98b0b5ef3 (patch)
tree929fbbcc92b9e24baa203fdb2e025f9e3e7e94f0 /src/api/endpoints/aggregation/posts/repost.ts
parentUse tabs in json (diff)
downloadsharkey-caeba1197c4b66e10614ffbddce0a2e98b0b5ef3.tar.gz
sharkey-caeba1197c4b66e10614ffbddce0a2e98b0b5ef3.tar.bz2
sharkey-caeba1197c4b66e10614ffbddce0a2e98b0b5ef3.zip
Refactoring
Diffstat (limited to 'src/api/endpoints/aggregation/posts/repost.ts')
-rw-r--r--src/api/endpoints/aggregation/posts/repost.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/api/endpoints/aggregation/posts/repost.ts b/src/api/endpoints/aggregation/posts/repost.ts
index 88d21243f8..217159caa7 100644
--- a/src/api/endpoints/aggregation/posts/repost.ts
+++ b/src/api/endpoints/aggregation/posts/repost.ts
@@ -51,7 +51,7 @@ module.exports = (params) => new Promise(async (res, rej) => {
const graph = [];
for (let i = 0; i < 30; i++) {
- let day = new Date(new Date().setDate(new Date().getDate() - i));
+ const day = new Date(new Date().setDate(new Date().getDate() - i));
const data = datas.filter(d =>
d.date.year == day.getFullYear() && d.date.month == day.getMonth() + 1 && d.date.day == day.getDate()