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

Commit c077e4e

Browse files
Max Leitertjram24tjram
authored
order announcements (#604)
* Remove auto scroll of schedule temporarily * update announcements order (#603) Co-authored-by: TJ Ram <tjram500@gmail.com> Co-authored-by: TJ Ram (USC) <tjram@usc.edu> Co-authored-by: TJ Ram <tjram500@gmail.com>
1 parent c61193a commit c077e4e

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

api/announcements.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ router.get("/:role", async (req, res) => {
1414
where: {
1515
target: role,
1616
},
17+
order: [["createdAt", "DESC"]],
1718
});
1819
} else {
1920
announcements = await models.Announcement.findAll({});

0 commit comments

Comments
 (0)