From c16d5f8df39a183e238afd6814d262dbfac55458 Mon Sep 17 00:00:00 2001 From: Sage Ross Date: Thu, 19 Dec 2024 11:26:57 -0800 Subject: [PATCH] Check Salesforce for closing timestamp as soon as courses end 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. --- app/workers/daily_update/salesforce_sync_worker.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/workers/daily_update/salesforce_sync_worker.rb b/app/workers/daily_update/salesforce_sync_worker.rb index a3d0d598b3..48a457f491 100644 --- a/app/workers/daily_update/salesforce_sync_worker.rb +++ b/app/workers/daily_update/salesforce_sync_worker.rb @@ -11,7 +11,7 @@ def perform PushCourseToSalesforce.new(course) end ClassroomProgramCourse - .archived + .ended .where(withdrawn: false) .reject(&:closed?) .select(&:approved?).each do |course|