We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 82d9f2e + c83bd0c commit 3faddfbCopy full SHA for 3faddfb
lib/code_corps/services/project.ex
@@ -12,8 +12,7 @@ defmodule CodeCorps.Services.ProjectService do
12
StripeConnectSubscription
13
|> where([s], s.status == "active" and s.stripe_connect_plan_id == ^plan_id)
14
|> Repo.aggregate(:sum, :quantity)
15
-
16
- total_monthly_donated = default_to_zero(total_monthly_donated)
+ |> default_to_zero
17
18
project
19
|> Project.update_total_changeset(%{total_monthly_donated: total_monthly_donated})
0 commit comments