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/posts/reposts.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/api/endpoints/posts/reposts.js') diff --git a/src/api/endpoints/posts/reposts.js b/src/api/endpoints/posts/reposts.js index 8b418a682f..a118ca6fba 100644 --- a/src/api/endpoints/posts/reposts.js +++ b/src/api/endpoints/posts/reposts.js @@ -73,11 +73,10 @@ module.exports = (params, user) => // Issue query const reposts = await Post - .find(query, {}, { + .find(query, { limit: limit, sort: sort - }) - .toArray(); + }); // Serialize res(await Promise.all(reposts.map(async post => -- cgit v1.3.1-freya