diff --git a/v1/src/apps/private/notifications/services.js b/v1/src/apps/private/notifications/services.js index e81eeeb..eb0dcec 100644 --- a/v1/src/apps/private/notifications/services.js +++ b/v1/src/apps/private/notifications/services.js @@ -8,7 +8,9 @@ async function getNotifications(req, res, next) { const list = await Notifications.find( { owner : userId, deleted : false - } ); + } ).sort({ + "createdAt":'desc' + }); return res.send( list ); }catch(error){ console.error( error );