server/routing/forward-events.rb in cpee-2.0.9 vs server/routing/forward-events.rb in cpee-2.0.11

- old
+ new

@@ -37,10 +37,11 @@ if redis.smembers("instance:#{instance}/handlers/#{key}").include? long url = redis.get("instance:#{instance}/handlers/#{key}/url") if url.nil? || url == "" redis.publish("forward:#{instance}/#{key}",mess) else - client = Riddl::Client.new(url,'http://riddl.org/ns/common-patterns/notifications-consumer/2.0/consumer.xml') + p "#{type}/#{topic}/#{event}-#{url}" + client = Riddl::Client.new(url) client.post [ Riddl::Parameter::Simple::new('type',type), Riddl::Parameter::Simple::new('topic',topic), Riddl::Parameter::Simple::new('event',name), Riddl::Parameter::Complex::new('notification','application/json',mess)