~singpolyma/jmp-pay

fdd24d1104a8d072072c5cd8a5921b1ff3928af9 — Stephen Paul Weber a month ago d33d2a2
Hotfixes
1 files changed, 4 insertions(+), 3 deletions(-)

M bin/cancel_expired_customers
M bin/cancel_expired_customers => bin/cancel_expired_customers +4 -3
@@ 101,12 101,13 @@ class ExpiringCustomer
				raise "#{@customer_id} not found"
			end

			iq
			@info = iq
		end
	end

	def next
		raise "Call info first" unless @sessionid
		raise "Call info first" unless @sessionid && @info
		return EMPromise.reject(:skip) unless @info.form.field("tel")

		BlatherNotify.write_with_promise(BlatherNotify.command(
			"customer info",


@@ 138,7 139,7 @@ ported_in_promise.then { |ported_in|
		customer = ExpiringCustomer.new(row["customer_id"])
		customer.info.then { |iq|
			if ported_in.include?(iq.form.field("tel")&.value&.to_s) &&
			   row["expires_at"] > (Date.today << 12)
			   row["expires_at"] > (Date.today << 12).to_time
				puts "#{row['customer_id']} ported in, skipping"
				EMPromise.reject(:skip)
			else