Skip to content
This repository has been archived by the owner on Jul 31, 2021. It is now read-only.

Commit

Permalink
Fix error in code.
Browse files Browse the repository at this point in the history
  • Loading branch information
minotaa committed Nov 20, 2019
1 parent caf3dc9 commit ab8970e
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,6 @@ app.get('/api/v1/get-user/:userId', (req, res) => {
following = users.get(`${req.params.userId}.following`),
followers = users.get(`${req.params.userId}.followers`),
joindate = users.get(`${req.params.userId}.joindate`),
follow_status = users.get(`${req.params.userId}.followers_list`).includes(user),
following_list = users.get(`${req.params.userId}.following_list`),
follower_list = users.get(`${req.params.userId}.followers_list`)
return res.status(200).json({ bio: bio, avatar: avatar, rank: rank, following: following, followers: followers, join_date: joindate, follow_status: follow_status, following: following_list, followers: follower_list })
Expand Down

0 comments on commit ab8970e

Please sign in to comment.