Skip to content

Commit

Permalink
Added logic to only make patch calls for active pauses
Browse files Browse the repository at this point in the history
  • Loading branch information
voduyemi committed Nov 17, 2022
1 parent a35f1fd commit 28ae7cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion force-app/main/default/classes/RD2_ScheduleService.cls
Original file line number Diff line number Diff line change
Expand Up @@ -1058,7 +1058,7 @@ public without sharing class RD2_ScheduleService {
private Boolean shouldEditPause (List<RecurringDonationSchedule__c> donationSchedules) {
Boolean shouldEdit = false;
for (RecurringDonationSchedule__c schedule : donationSchedules) {
if (schedule.IsPause__c) {
if (schedule.IsPause__c && schedule.EndDate__c >= System.today()) {
shouldEdit = true;
break;
}
Expand Down

0 comments on commit 28ae7cb

Please sign in to comment.