From 0846f6d96e0e058e7c7e27c2295364031ab68a6e Mon Sep 17 00:00:00 2001 From: Stephen Paul Weber Date: Mon, 26 Apr 2021 10:40:53 -0500 Subject: [PATCH] hotfix from prod, avoid crash on old session --- bin/process_pending_btc_transactions | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/process_pending_btc_transactions b/bin/process_pending_btc_transactions index 04d6e5a2c753604994e9db228c06dfa30e5fad51..ae922a8b3f3c422d1696a0a0c9510ba4eb839fb6 100755 --- a/bin/process_pending_btc_transactions +++ b/bin/process_pending_btc_transactions @@ -169,7 +169,7 @@ class Plan def notify_approved sid = REDIS.get("reg-sid_for-#{@customer.id}") - tel = REDIS.get("reg-session_tel-#{sid}").sub(/\+/, "%2B") + tel = REDIS.get("reg-session_tel-#{sid}")&.sub(/\+/, "%2B") @customer.notify( "Your JMP account has been approved. To complete " \ "your signup, click/tap here: " \