ordering grants

This commit is contained in:
Arjun Patel
2019-05-09 02:04:21 -07:00
parent f71eea03f6
commit dae6850bfd
+1
View File
@@ -148,6 +148,7 @@ exports.getGrantsByDonorId = async (req, res, next) => {
Select *
from grants
where donor_id = :donor_id
order by created_at DESC
`,
{ type: db.sequelize.QueryTypes.SELECT, replacements: { donor_id } }
);