Commit 6d81e52f authored by Kristupas Bobraitis's avatar Kristupas Bobraitis
Browse files

Changed 'get_balance_for_coin_by_time()' to return 0 when 'balance' is null

parent d5292256
......@@ -167,7 +167,7 @@ BEGIN
RETURN to_jsonb(result) FROM (
SELECT
json_agg(time_step) AS time,
json_agg(balance) AS balance
json_agg(CASE WHEN balance IS NULL THEN 0 ELSE balance END) AS balance
FROM (
SELECT
time_step,
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment