Fix bug on organic endpoint
This commit is contained in:
@@ -82,7 +82,7 @@ DB.getDB.then((DB) => {
|
|||||||
let organicPosts = await DB.getFeed(profileid);
|
let organicPosts = await DB.getFeed(profileid);
|
||||||
//Add non-organic posts
|
//Add non-organic posts
|
||||||
const nonOrganicPosts = await generateNonOrganicPosts(req, profileid);
|
const nonOrganicPosts = await generateNonOrganicPosts(req, profileid);
|
||||||
const posts = mergePosts(promotionalPosts, nonOrganicPosts);
|
const posts = mergePosts(organicPosts, nonOrganicPosts);
|
||||||
return res.json(posts);
|
return res.json(posts);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user