Skip to content

Commit c83bd0c

Browse files
committed
Fix duplicate declaration credo warning
1 parent 82d9f2e commit c83bd0c

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)