~singpolyma/sgx-jmp

36dbdd72d1f59f4c57cc2ff3456724cc0145c76a — Stephen Paul Weber 8 months ago 045da39
Even if key catapult_jid- exists, this is bonkers, just say no
2 files changed, 2 insertions(+), 0 deletions(-)

M lib/customer_info.rb
M lib/customer_repo.rb
M lib/customer_info.rb => lib/customer_info.rb +1 -0
@@ 1,5 1,6 @@
# frozen_string_literal: true

require "bigdecimal"
require "value_semantics/monkey_patched"
require_relative "proxied_jid"
require_relative "customer_plan"

M lib/customer_repo.rb => lib/customer_repo.rb +1 -0
@@ 33,6 33,7 @@ class CustomerRepo

	def find_by_tel(tel)
		@redis.get("catapult_jid-#{tel}").then do |jid|
			raise "No jid" unless jid
			find_by_jid(jid)
		end
	end