Skip to content

Commit

Permalink
Sorted donations by donation date
Browse files Browse the repository at this point in the history
  • Loading branch information
jzongker committed Nov 20, 2024
1 parent bc6e1d9 commit 14fab48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/repositories/FundDonationRepository.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export class FundDonationRepository {
}

public loadByPersonId(churchId: string, personId: string) {
return DB.query("SELECT fd.* FROM donations d inner join fundDonations fd on fd.churchId=d.churchId and fd.donationId=d.id WHERE d.churchId=? AND d.personId=?;", [churchId, personId]);
return DB.query("SELECT fd.* FROM donations d inner join fundDonations fd on fd.churchId=d.churchId and fd.donationId=d.id WHERE d.churchId=? AND d.personId=? ORDER by d.donationDate;", [churchId, personId]);
}

public loadByFundId(churchId: string, fundId: string) {
Expand Down

0 comments on commit 14fab48

Please sign in to comment.