Skip to content
This repository was archived by the owner on Jan 26, 2023. It is now read-only.

Commit 38978c5

Browse files
committed
Handle nil distribution amount
1 parent ff94797 commit 38978c5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/code_fund/stats/user_impressions.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ defmodule CodeFund.Stats.UserImpressions do
8686
from(user_impression in get_last_thirty_days(),
8787
select: sum(user_impression.distribution_amount)
8888
)
89-
|> Repo.one()
89+
|> Repo.one() || 0.0
9090
end
9191

9292
defp get_last_thirty_days() do

0 commit comments

Comments
 (0)