Ver Fonte

Order by id descending

sbkwgh há 8 anos atrás
pai
commit
6e340a0266
1 ficheiros alterados com 1 adições e 0 exclusões
  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'] }]