From c3ccc20b94a7b26405f6555d6cfbe9f6246687fd Mon Sep 17 00:00:00 2001 From: Stephen Paul Weber Date: Sat, 6 Jul 2024 09:30:33 -0500 Subject: [PATCH] Fuck --- lib/trivial_backend_sgx_repo.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/trivial_backend_sgx_repo.rb b/lib/trivial_backend_sgx_repo.rb index d25bb28..90565db 100644 --- a/lib/trivial_backend_sgx_repo.rb +++ b/lib/trivial_backend_sgx_repo.rb @@ -24,7 +24,7 @@ class TrivialBackendSgxRepo def get(customer_id, tel: nil) use_jid(customer_id).then do |sgx_jid| - creds = sgx_jid ? CONFIG[:sgx_creds][sgx_jid.to_s.to_sym] : @creds + creds = sgx_jid && sgx_jid.is_a?(String) ? CONFIG[:sgx_creds][sgx_jid.to_sym] : @creds BackendSgx.new( jid: sgx_jid ? Blather::JID.new(sgx_jid) : @jid, creds: creds, from_jid: Blather::JID.new("customer_#{customer_id}", @component_jid), -- 2.45.2