~singpolyma/jmp-pay

c09aa9494b6b24f86e4eb38ea4f396343e2365a2 — Stephen Paul Weber 3 years ago 0a89e15
Don't send malformed to JID when customer has no tel yet
1 files changed, 2 insertions(+), 0 deletions(-)

M bin/process_pending_btc_transactions
M bin/process_pending_btc_transactions => bin/process_pending_btc_transactions +2 -0
@@ 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