Skip to content
This repository was archived by the owner on Aug 26, 2022. It is now read-only.

Commit e84c958

Browse files
author
Max Leiter
authored
revert sorting announcements
1 parent c077e4e commit e84c958

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

api/announcements.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,7 @@ router.get("/:role", async (req, res) => {
1313
announcements = await models.Announcement.findAll({
1414
where: {
1515
target: role,
16-
},
17-
order: [["createdAt", "DESC"]],
16+
}
1817
});
1918
} else {
2019
announcements = await models.Announcement.findAll({});

0 commit comments

Comments
 (0)