Skip to content

Commit 74b05ea

Browse files
committed
Transmit kafka secret
1 parent eb1b04e commit 74b05ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/background_tasks/kafka_batch_update_points_task.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def run
4242
progress: progress,
4343
message_format_version: 1
4444
}
45-
RestClient.post("#{@kafka_bridge_url}/api/v0/event", { topic: 'user_course_progress', payload: message }.to_json, { content_type: :json })
45+
RestClient.post("#{@kafka_bridge_url}/api/v0/event", { topic: 'user_course_progress', payload: message }.to_json, { content_type: :json, authorization: "Basic #{@kafka_bridge_secret}" })
4646
end
4747
task.destroy!
4848
puts "Batch publish finished for #{course.name}"

0 commit comments

Comments
 (0)