Explorar el Código

Order by id descending

sbkwgh hace 8 años
padre
commit
6e340a0266
Se han modificado 1 ficheros con 1 adiciones y 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'] }]