From cb20c8b632e67669c039d24a36f7041dc8dbf6ec Mon Sep 17 00:00:00 2001 From: Stephen Paul Weber Date: Mon, 24 Jun 2024 12:10:04 -0500 Subject: [PATCH] That's in the repo --- sgx_jmp.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sgx_jmp.rb b/sgx_jmp.rb index a632179338c4d447d3e4f60f0a258d857c96a1f8..cd2bb1290a56e3eeaf293c757e3826601eab4de6 100644 --- a/sgx_jmp.rb +++ b/sgx_jmp.rb @@ -376,7 +376,7 @@ def find_from_and_to_customer(from, to) ( # TODO: group text? to.node ? CustomerRepo.new.find_by_tel(to.node) : EMPromise.resolve(nil) - ).catch_only(Customer::NotFound) { nil }.then { |target_customer| + ).catch_only(CustomerRepo::NotFound) { nil }.then { |target_customer| sgx_repo = target_customer ? Bwmsgsv2Repo.new : TrivialBackendSgxRepo.new EMPromise.all([ CustomerRepo.new(set_user: Sentry.method(:set_user), sgx_repo: sgx_repo)