Explorar o código

Order by id descending

sbkwgh %!s(int64=8) %!d(string=hai) anos
pai
achega
6e340a0266
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  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'] }]