Skip to content

Commit

Permalink
Check Salesforce for closing timestamp as soon as courses end
Browse files Browse the repository at this point in the history
We sometimes close courses before they reach the 'archived' threshold, so we should start syncing that bit of Salesforce data without waiting for the update window to end.
  • Loading branch information
ragesoss committed Dec 19, 2024
1 parent e85116c commit c16d5f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/workers/daily_update/salesforce_sync_worker.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ def perform
PushCourseToSalesforce.new(course)
end
ClassroomProgramCourse
.archived
.ended
.where(withdrawn: false)
.reject(&:closed?)
.select(&:approved?).each do |course|
Expand Down

0 comments on commit c16d5f8

Please sign in to comment.