This commit is contained in:
ricky authored and GitHub committed 2016-07-28 08:59:43 -04:00
1 parent 47aa454895
commit 37d0b2321f
1 file changed
+3 -2
+3 -2
View File
@@ -75,8 +75,9 @@ class QboController < ApplicationController
entities = data['eventNotifications'][0]['dataChangeEvent']['entities']
entities.each do |entity|
puts entity['name']
puts entity['id']
if entity['name'].eql? "Customer"
Customer.sync(entity['id'].to_i)
end
end
# The webhook doesn't require a response but let's make sure