From c09aa9494b6b24f86e4eb38ea4f396343e2365a2 Mon Sep 17 00:00:00 2001 From: Stephen Paul Weber Date: Wed, 3 Mar 2021 16:00:31 -0500 Subject: [PATCH] Don't send malformed to JID when customer has no tel yet --- bin/process_pending_btc_transactions | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bin/process_pending_btc_transactions b/bin/process_pending_btc_transactions index 964e0c5..2f7c737 100755 --- a/bin/process_pending_btc_transactions +++ b/bin/process_pending_btc_transactions @@ -172,7 +172,9 @@ class Customer def notify(body) jid = REDIS.get("jmp_customer_jid-#{@customer_id}") + raise "No JID for #{customer_id}" unless jid tel = REDIS.lindex("catapult_cred-#{jid}", 3) + return unless tel BlatherNotify.say( CONFIG[:notify_using][:target].call(tel.to_s), body -- 2.38.5