From 9f81288fccdbaf9184d49e61680747945b34f23d Mon Sep 17 00:00:00 2001 From: syuilo Date: Tue, 17 Jan 2017 11:11:22 +0900 Subject: Fix bug --- src/api/endpoints/aggregation/posts/reply.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/api/endpoints/aggregation/posts/reply.js') diff --git a/src/api/endpoints/aggregation/posts/reply.js b/src/api/endpoints/aggregation/posts/reply.js index e578bc6d7d..d79ccafb1c 100644 --- a/src/api/endpoints/aggregation/posts/reply.js +++ b/src/api/endpoints/aggregation/posts/reply.js @@ -47,8 +47,7 @@ module.exports = (params) => _id: '$date', count: { $sum: 1 } }} - ]) - .toArray(); + ]); datas.forEach(data => { data.date = data._id; -- cgit v1.3.1-freya