lib/bjond-api.rb in bjond-api-0.3.5 vs lib/bjond-api.rb in bjond-api-0.3.6
- old
+ new
@@ -28,10 +28,10 @@
puts "Firing event for registration: "
puts bjond_registration.id
services = BjondService.where(:bjond_registration_id => bjond_registration.id)
connections = []
services.each do |bjond_svc|
- url = bjond_svc.endpoint# + "/#{event_id}"
+ url = bjond_svc.endpoint + "/#{event_id}"
puts "Creating connection to " + url
conn = Faraday.new(:url => url)
conn.post do |req|
req.headers['Content-Type'] = 'application/json'
req.body = BjondJwt::jwt_encode_payload(payload, bjond_registration)