From 0d5fb8d3e3a01b26c21af82f9fccd6579d88331b Mon Sep 17 00:00:00 2001 From: Rick Barrette Date: Thu, 28 Jul 2016 08:47:39 -0400 Subject: [PATCH] Update qbo_controller.rb --- app/controllers/qbo_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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