From e5f12199ceaa6e5ea7022884f025ff8c818297e6 Mon Sep 17 00:00:00 2001 From: Stephen Paul Weber Date: Thu, 1 Jul 2021 20:57:17 -0500 Subject: [PATCH] Hotfix, iq replies coming to customer_ should try the manager first --- sgx_jmp.rb | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/sgx_jmp.rb b/sgx_jmp.rb index 4fd357d..b298c50 100644 --- a/sgx_jmp.rb +++ b/sgx_jmp.rb @@ -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( -- 2.38.5