Skip to content

Commit 40e8855

Browse files
committed
remove unused params
1 parent cad10d5 commit 40e8855

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

lib/algora/bounties/bounties.ex

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -610,9 +610,6 @@ defmodule Algora.Bounties do
610610
with {:ok, _charge} <-
611611
initialize_charge(%{
612612
id: Nanoid.generate(),
613-
tip_id: opts[:tip_id],
614-
bounty_id: opts[:bounty_id],
615-
claim_id: nil,
616613
user_id: owner.id,
617614
gross_amount: gross_amount,
618615
net_amount: amount,
@@ -669,9 +666,6 @@ defmodule Algora.Bounties do
669666
with {:ok, _charge} <-
670667
initialize_charge(%{
671668
id: Nanoid.generate(),
672-
tip_id: opts[:tip_id],
673-
bounty_id: opts[:bounty_id],
674-
claim_id: nil,
675669
user_id: owner.id,
676670
gross_amount: gross_amount,
677671
net_amount: amount,
@@ -711,8 +705,6 @@ defmodule Algora.Bounties do
711705

712706
defp initialize_charge(%{
713707
id: id,
714-
tip_id: tip_id,
715-
bounty_id: bounty_id,
716708
user_id: user_id,
717709
gross_amount: gross_amount,
718710
net_amount: net_amount,
@@ -726,8 +718,6 @@ defmodule Algora.Bounties do
726718
provider: "stripe",
727719
type: :charge,
728720
status: :initialized,
729-
tip_id: tip_id,
730-
bounty_id: bounty_id,
731721
user_id: user_id,
732722
gross_amount: gross_amount,
733723
net_amount: net_amount,
@@ -739,9 +729,6 @@ defmodule Algora.Bounties do
739729
|> Algora.Validations.validate_positive(:net_amount)
740730
|> Algora.Validations.validate_positive(:total_fee)
741731
|> foreign_key_constraint(:user_id)
742-
|> foreign_key_constraint(:tip_id)
743-
|> foreign_key_constraint(:bounty_id)
744-
|> foreign_key_constraint(:claim_id)
745732
|> Repo.insert()
746733
end
747734

0 commit comments

Comments
 (0)