From 07a651c5239d124e31e42d1d54cfbabd945a4fed Mon Sep 17 00:00:00 2001 From: Amolith Date: Mon, 31 Mar 2025 15:29:41 -0600 Subject: [PATCH] refactor: use configed onboarding domain for Change JID cmd Replace hardcoded string with the configuration value that's already used elsewhere. --- sgx_jmp.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sgx_jmp.rb b/sgx_jmp.rb index 5d035911b1353d518180800166a4ec19372f7567..c61c65571b5823235ff49161278d9af5e4c06311 100644 --- a/sgx_jmp.rb +++ b/sgx_jmp.rb @@ -1050,7 +1050,7 @@ Command.new( "https://ns.cheogram.com/sgx/jid-switch", "Change JID", list_for: lambda { |customer: nil, from_jid: nil, **| - customer || from_jid.to_s =~ /onboarding.cheogram.com/ + customer || from_jid.to_s =~ Regexp.new(CONFIG[:onboarding_domain]) }, customer_repo: CustomerRepo.new(sgx_repo: Bwmsgsv2Repo.new) ) {