Removed sorting in exchange for filtering
This commit is contained in:
@@ -32,5 +32,5 @@ async function handler(req: NextApiRequest, res: NextApiResponse) {
|
||||
direction,
|
||||
);
|
||||
|
||||
res.status(200).json({users: uniqBy([...users, req.session.user], "id"), total});
|
||||
res.status(200).json({users: uniqBy([...users], "id"), total});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user