Skip to content

Commit

Permalink
Order events ascending
Browse files Browse the repository at this point in the history
  • Loading branch information
theNatePi committed May 12, 2024
1 parent 059ce50 commit 2127852
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion routes/data.js
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,7 @@ dataRouter.get('/unregistered/:volunteerId', async (req, res) => {
FROM current_events
LEFT JOIN event_data ON current_events.id = event_data.event_id AND event_data.volunteer_id = $1
WHERE event_data.event_id IS NULL
ORDER BY current_events.date DESC;`,
ORDER BY current_events.date ASC;`,
[volunteerId],
);
res.status(200).json(unregisteredEvents.rows);
Expand Down

0 comments on commit 2127852

Please sign in to comment.