We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent eb1b04e commit 74b05eaCopy full SHA for 74b05ea
1 file changed
app/background_tasks/kafka_batch_update_points_task.rb
@@ -42,7 +42,7 @@ def run
42
progress: progress,
43
message_format_version: 1
44
}
45
- RestClient.post("#{@kafka_bridge_url}/api/v0/event", { topic: 'user_course_progress', payload: message }.to_json, { content_type: :json })
+ RestClient.post("#{@kafka_bridge_url}/api/v0/event", { topic: 'user_course_progress', payload: message }.to_json, { content_type: :json, authorization: "Basic #{@kafka_bridge_secret}" })
46
end
47
task.destroy!
48
puts "Batch publish finished for #{course.name}"
0 commit comments