refactor: use configed onboarding domain for Change JID cmd

Amolith created

Replace hardcoded string with the configuration value that's already used
elsewhere.

Change summary

sgx_jmp.rb | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Detailed changes

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)
 ) {