~singpolyma/sgx-jmp

e5f12199ceaa6e5ea7022884f025ff8c818297e6 — Stephen Paul Weber 3 years ago 6d7b1ee
Hotfix, iq replies coming to customer_ should try the manager first
1 files changed, 7 insertions(+), 0 deletions(-)

M sgx_jmp.rb
M sgx_jmp.rb => sgx_jmp.rb +7 -0
@@ 142,6 142,13 @@ message to: /\Aaccount@/ do |m|
	end
end

before(
	:iq,
	type: [:error, :result],
	to: /\Acustomer_/,
	from: /(\A|@)#{CONFIG[:sgx]}(\/|\Z)/
) { |iq| halt if IQ_MANAGER.fulfill(iq) }

before nil, to: /\Acustomer_/, from: /(\A|@)#{CONFIG[:sgx]}(\/|\Z)/ do |s|
	sentry_hub = new_sentry_hub(s, name: "stanza_customer")
	Customer.for_customer_id(