Skip to content

Commit 848d02e

Browse files
committed
Send active campaigns to DPS
This updates the export job to only send active campaigns to DPS. This code is temporary, but it serves as a reminder that when we update the code for this job we only fetch records from active campaigns.
1 parent 7a3361b commit 848d02e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/jobs/dps_export_job.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ class DPSExportJob < ApplicationJob
44
queue_as :default
55

66
def perform
7-
campaign = Campaign.first # TODO: Not .first
7+
campaign = Campaign.active.first # TODO: Not .first
88
data = DPSExport.create!(campaign:).export!
99
MESH.send_file(data:, to: Settings.mesh.dps_mailbox)
1010
end

0 commit comments

Comments
 (0)