From a49932ae7994eced7253c1bf08da8a5ce70cfbfe Mon Sep 17 00:00:00 2001 From: Adolfo Reyna Date: Thu, 20 Feb 2025 21:49:25 -0500 Subject: [PATCH] Fix bug on organic endpoint --- routes/post.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routes/post.js b/routes/post.js index 5c03f05..9de789e 100644 --- a/routes/post.js +++ b/routes/post.js @@ -82,7 +82,7 @@ DB.getDB.then((DB) => { let organicPosts = await DB.getFeed(profileid); //Add non-organic posts const nonOrganicPosts = await generateNonOrganicPosts(req, profileid); - const posts = mergePosts(promotionalPosts, nonOrganicPosts); + const posts = mergePosts(organicPosts, nonOrganicPosts); return res.json(posts); });