Skip to content

Commit

Permalink
Fix sort
Browse files Browse the repository at this point in the history
  • Loading branch information
BlackIQ committed Apr 22, 2023
1 parent 7478429 commit 6850572
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/controllers/user/user.controllers.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ export const MY_LOGS = async (req, res) => {

try {
const logs = await Log.find({ tid: id })
.sort({ createdAt: -1 })
.populate({
path: "service",
model: Service,
Expand Down

0 comments on commit 6850572

Please sign in to comment.