~singpolyma/sgx-jmp

045da39f25b74034e7bba44cb5f1db48a935ba84 — Stephen Paul Weber 8 months ago 589ab72
Hotfix: arguments in wrong order
4 files changed, 6 insertions(+), 6 deletions(-)

M lib/btc_sell_prices.rb
M lib/registration.rb
M lib/web_register_manager.rb
M test/test_helper.rb
M lib/btc_sell_prices.rb => lib/btc_sell_prices.rb +1 -1
@@ 52,7 52,7 @@ protected
				@oxr.update_rates
				@oxr.get_rate("CAD", "USD")
			}.then do |orate|
				@redis.setex("cad_to_usd", orate, 60 * 60).then { orate }
				@redis.setex("cad_to_usd", 60 * 60, orate).then { orate }
			end
		end
	end

M lib/registration.rb => lib/registration.rb +3 -3
@@ 169,11 169,11 @@ class Registration

			def save
				EMPromise.all([
					REDIS.setex("pending_tel_for-#{@customer.jid}", tel, THIRTY_DAYS),
					REDIS.setex("pending_tel_for-#{@customer.jid}", THIRTY_DAYS, tel),
					REDIS.setex(
						"pending_plan_for-#{customer_id}",
						@customer.plan_name,
						THIRTY_DAYS
						THIRTY_DAYS,
						@customer.plan_name
					)
				])
			end

M lib/web_register_manager.rb => lib/web_register_manager.rb +1 -1
@@ 8,7 8,7 @@ class WebRegisterManager
	end

	def set(jid, tel)
		@redis.setex("pending_tel_for-#{jid}", tel, THIRTY_DAYS)
		@redis.setex("pending_tel_for-#{jid}", THIRTY_DAYS, tel)
	end

	def [](jid)

M test/test_helper.rb => test/test_helper.rb +1 -1
@@ 142,7 142,7 @@ class FakeRedis
		EMPromise.resolve("OK")
	end

	def setex(key, value, _expiry)
	def setex(key, _expiry, value)
		set(key, value)
	end