diff --git a/app/controllers/user/user.controllers.js b/app/controllers/user/user.controllers.js index d236680..3e89738 100644 --- a/app/controllers/user/user.controllers.js +++ b/app/controllers/user/user.controllers.js @@ -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,