Fetching and curating posts per user without merge.
This commit is contained in:
@@ -34,7 +34,7 @@ const getPosts = async (username, reddit, args) => {
|
||||
}
|
||||
};
|
||||
|
||||
const getUserPostsWrap = (reddit, args) => usernames => Promise.props(usernames.reduce((userPosts, username) => {
|
||||
const getUserPostsWrap = (reddit, args) => users => Promise.props(Object.entries(users).reduce((userPosts, [username, user]) => {
|
||||
userPosts[username] = (async () => {
|
||||
const [user, posts] = await Promise.all([
|
||||
getUser(username, reddit),
|
||||
|
||||
Reference in New Issue
Block a user