lib/nationbuilder/client.rb in nationbuilder-rb-1.2.3 vs lib/nationbuilder/client.rb in nationbuilder-rb-1.3.0
- old
+ new
@@ -54,9 +54,12 @@
if method == :get
request_args[:query].merge!(body)
else
body[:access_token] = @api_key
+ if !body[:fire_webhooks].nil?
+ request_args[:query][:fire_webhooks] = body[:fire_webhooks]
+ end
request_args[:body] = JSON(body)
end
perform_request_with_retries(method, url, request_args)
end