~vesto/huginn_venmo_agent

343d74aa84d1b6a1749980560a2b6f3b0ecd1988 — Steve Gattuso 3 years ago 072020c
fix payload
1 files changed, 1 insertions(+), 1 deletions(-)

M lib/huginn_venmo_agents/create_venmo_transaction_agent.rb
M lib/huginn_venmo_agents/create_venmo_transaction_agent.rb => lib/huginn_venmo_agents/create_venmo_transaction_agent.rb +1 -1
@@ 67,7 67,7 @@ module Agents
      memory['last_success'] = false

      incoming_events.each do |event|
        if event['amount'] < 0
        if event.payload['amount'] < 0
          error('Disallowing payment (this Agent is too new/dangerous for this to be enabled)')
          next
        elsif agent['user_id'].nil?