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