~singpolyma/sgx-jmp

110a040c228f2807829479a60e951d188365b8ab — Stephen Paul Weber 1 year, 14 days ago 3748400
Use NotFound exception for all customer not found cases
1 files changed, 1 insertions(+), 1 deletions(-)

M lib/customer_repo.rb
M lib/customer_repo.rb => lib/customer_repo.rb +1 -1
@@ 33,7 33,7 @@ class CustomerRepo
			find($1)
		else
			@redis.get("jmp_customer_id-#{jid}").then do |customer_id|
				raise "No customer" unless customer_id
				raise NotFound, "No customer" unless customer_id

				find_inner(customer_id, jid)
			end