Skip to content

Commit

Permalink
Fix: GeoPoll status notification threw NameError
Browse files Browse the repository at this point in the history
The unknown parameters log was copied from the `/incoming` endpoint and
refered the wrong variables. It's now been fixed.

See #88
  • Loading branch information
matiasgarciaisaia committed Mar 13, 2024
1 parent 13c1f50 commit f6594e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/geopoll_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def status
account.logger.info :channel_id => channel.id, :ao_message_id => ao.id,
:message => "Recieved delivery notification with status #{status.inspect}"

channel.logger.warning :channel_id => channel.id, :at_message_id => msg.id, :message => "Received unknown parameters for AO #{msg.id} Status: #{unknown_params.to_json}" unless unknown_params.empty?
channel.logger.warning :channel_id => channel.id, :ao_message_id => ao.id, :message => "Received unknown parameters for AO #{ao.id} Status: #{unknown_params.to_json}" unless unknown_params.empty?

ao.custom_attributes[:geopoll_status] = status if status
ao.save!
Expand Down

0 comments on commit f6594e1

Please sign in to comment.