diff --git a/app/controllers/qbo_controller.rb b/app/controllers/qbo_controller.rb index 4513dfa..f69485b 100644 --- a/app/controllers/qbo_controller.rb +++ b/app/controllers/qbo_controller.rb @@ -72,7 +72,7 @@ class QboController < ApplicationController data = params.as_json end - entities = data[0]['eventNotifications'][0]['dataChangeEvent']['entities'] + entities = data['eventNotifications'][0]['dataChangeEvent']['entities'] # The webhook doesn't require a response but let's make sure # we don't send anything