ordering grants
This commit is contained in:
@@ -148,6 +148,7 @@ exports.getGrantsByDonorId = async (req, res, next) => {
|
|||||||
Select *
|
Select *
|
||||||
from grants
|
from grants
|
||||||
where donor_id = :donor_id
|
where donor_id = :donor_id
|
||||||
|
order by created_at DESC
|
||||||
`,
|
`,
|
||||||
{ type: db.sequelize.QueryTypes.SELECT, replacements: { donor_id } }
|
{ type: db.sequelize.QueryTypes.SELECT, replacements: { donor_id } }
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user