Skip to content

Commit 3faddfb

Browse files
authored
Merge pull request #754 from ignu/fix-credo-error
Fix duplicate declaration credo warning
2 parents 82d9f2e + c83bd0c commit 3faddfb

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/code_corps/services/project.ex

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@ defmodule CodeCorps.Services.ProjectService do
1212
StripeConnectSubscription
1313
|> where([s], s.status == "active" and s.stripe_connect_plan_id == ^plan_id)
1414
|> Repo.aggregate(:sum, :quantity)
15-
16-
total_monthly_donated = default_to_zero(total_monthly_donated)
15+
|> default_to_zero
1716

1817
project
1918
|> Project.update_total_changeset(%{total_monthly_donated: total_monthly_donated})

0 commit comments

Comments
 (0)