Skip to content
Snippets Groups Projects
Commit d2170286 authored by MinJae Kwon's avatar MinJae Kwon
Browse files

chore: order by id desc

parent 67a230f1
Branches
No related tags found
No related merge requests found
......@@ -359,6 +359,7 @@ exports.listUserCrews = async (req, res) => {
},
limit: listItemsPerPage,
offset: parseInt(page, 10) * listItemsPerPage,
order: [[sequelize.literal('crewID'), 'DESC']],
});
// NOTE: cache it.
......@@ -428,6 +429,7 @@ exports.listUserEvents = async (req, res) => {
},
limit: listItemsPerPage,
offset: parseInt(page, 10) * listItemsPerPage,
order: [[sequelize.literal('eventID'), 'DESC']],
});
const joinedEventCount = await EventParticipants.count({
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment