Skip to content

Commit c1613c1

Browse files
committed
Fix null sum bug
1 parent 31e629f commit c1613c1

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

coderd/database/queries.sql.go

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

coderd/database/queries/quotas.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ ORDER BY
2222
created_at DESC
2323
)
2424
SELECT
25-
SUM(daily_cost)
25+
coalesce(SUM(daily_cost), 0)::BIGINT
2626
FROM
2727
workspaces
2828
JOIN latest_builds ON

0 commit comments

Comments
 (0)