sbkwgh преди 8 години
родител
ревизия
6e340a0266
променени са 1 файла, в които са добавени 1 реда и са изтрити 0 реда
  1. 1 0
      routes/notification.js

+ 1 - 0
routes/notification.js

@@ -21,6 +21,7 @@ router.get('/', async (req, res) => {
 			where: {
 				'UserId': req.session.UserId
 			},
+			order: [['id', 'DESC']],
 			include: [{
 				model: MentionNotification,
 				include: [Post, { model: User, attributes: ['createdAt', 'username', 'color'] }]