Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
taugk committed Dec 17, 2023
1 parent aaada23 commit 0cfdca8
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions routes/postsRoutes.js
Original file line number Diff line number Diff line change
Expand Up @@ -322,8 +322,6 @@ router.get("/recommendation/homefood", async (req, res) => {

return responseHomefoodPost;
});

// Sort by distance after timestamp conversion
const sortHomefood = withDistance.sort((a, b) => a.distance - b.distance);

const homefoodPost = sortHomefood.slice(0, 5);
Expand Down

0 comments on commit 0cfdca8

Please sign in to comment.