mirror of
https://github.com/rickbarrette/redmine_qbo.git
synced 2025-11-08 17:04:23 -05:00
Webhook
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user