Redis fixes

This commit is contained in:
Fosco Marotto
2021-01-16 14:38:01 -05:00
parent 8d48c3ce3d
commit 1214b0664c
3 changed files with 16 additions and 9 deletions

View File

@@ -3,6 +3,7 @@
class Api::V1::ExpensesController < EmptyController
def show
amount = 0
Redis.current.with do |conn|
amount = conn.get("monthly_funding_amount") || 0
end