Integrate Small Change from Prod
Christopher Vollick
created 8 months ago
One was just a typo that obviously should be fixed here, and the other
is a small policy change.
Compared to upstream hotfix, spaces and parens were added to keep
rubocop happy.
Change summary
bin/process_pending_btc_transactions | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
Detailed changes
@@ -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