diff --git a/bin/process_pending_btc_transactions b/bin/process_pending_btc_transactions index ae22de0313d071c31004515c9999b563671c13d9..e5944b45db0ad7ea1ed2a5d03ce968fdd4c5b99e 100755 --- a/bin/process_pending_btc_transactions +++ b/bin/process_pending_btc_transactions @@ -169,7 +169,7 @@ class Customer def notify(body, onboarding_body=nil) jid = REDIS.get("jmp_customer_jid-#{@customer_id}") - raise "No JID for #{customer_id}" unless jid + raise "No JID for #{@customer_id}" unless jid if jid =~ /onboarding.cheogram.com/ && onboarding_body body = onboarding_body @@ -197,7 +197,8 @@ class Customer @customer_id, txid, fiat_amount, - "Cryptocurrency payment" + "Cryptocurrency payment", + settled_after: Time.now + (5 * 24 * 60 * 60) ) return unless tx.save