From f0e1c6b5a9ac5515470714864d8c5b4fac7d9efb Mon Sep 17 00:00:00 2001 From: aeroreyna Date: Wed, 16 Feb 2022 22:40:49 -0800 Subject: [PATCH] change popular groups to limit 5 --- routes/post.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routes/post.js b/routes/post.js index c6ab917..4d1b123 100644 --- a/routes/post.js +++ b/routes/post.js @@ -26,7 +26,7 @@ DB.getDB.then((DB) => { content += "@p:" + p._id + "\n"; }); let popularProfilesPost = new Post({profileid: 1, content, nonOrganicType: "PopularUsers"}); - const popularGroups = await DB.getPopularGroups(15); + const popularGroups = await DB.getPopularGroups(5); content = "Popular users to follow:\n"; popularGroups.forEach((p)=>{ content += "@p:" + p._id + "\n";