From 0cf9f43d75b31438596f006d83a679fae148ecf9 Mon Sep 17 00:00:00 2001 From: Stephen Paul Weber Date: Mon, 29 Jan 2024 14:28:01 -0500 Subject: [PATCH] Allow any onbaording jid to use change jid --- sgx_jmp.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sgx_jmp.rb b/sgx_jmp.rb index 7e978f3a36f597e319be8f46bfdf950e0bbe7639..eff7f6d4ea5d2e395c2e0946e4f5198c5483b428 100644 --- a/sgx_jmp.rb +++ b/sgx_jmp.rb @@ -1011,7 +1011,9 @@ end Command.new( "https://ns.cheogram.com/sgx/jid-switch", "Change JID", - list_for: ->(customer: nil, **) { customer }, + list_for: lambda { |customer: nil, from_jid: nil, **| + customer || from_jid.to_s =~ /onboarding.cheogram.com/ + }, customer_repo: CustomerRepo.new(sgx_repo: Bwmsgsv2Repo.new) ) { Command.customer.then { |customer|