Skip to content

Commit

Permalink
fix: order business donations desc
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinWu098 committed Aug 4, 2024
1 parent a265907 commit de56d3d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion routes/donationRouter.js
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ donationRouter.get('/business/:businessId', async (req, res) => {
try {
const { businessId } = req.params;
const donation = await db.query(
'SELECT * FROM donation_tracking WHERE business_id = $(businessId)',
'SELECT * FROM donation_tracking WHERE business_id = $(businessId) ORDER BY date DESC',
{
businessId,
},
Expand Down

0 comments on commit de56d3d

Please sign in to comment.