File tree Expand file tree Collapse file tree 1 file changed +0
-13
lines changed Expand file tree Collapse file tree 1 file changed +0
-13
lines changed Original file line number Diff line number Diff line change @@ -610,9 +610,6 @@ defmodule Algora.Bounties do
610
610
with { :ok , _charge } <-
611
611
initialize_charge ( % {
612
612
id: Nanoid . generate ( ) ,
613
- tip_id: opts [ :tip_id ] ,
614
- bounty_id: opts [ :bounty_id ] ,
615
- claim_id: nil ,
616
613
user_id: owner . id ,
617
614
gross_amount: gross_amount ,
618
615
net_amount: amount ,
@@ -669,9 +666,6 @@ defmodule Algora.Bounties do
669
666
with { :ok , _charge } <-
670
667
initialize_charge ( % {
671
668
id: Nanoid . generate ( ) ,
672
- tip_id: opts [ :tip_id ] ,
673
- bounty_id: opts [ :bounty_id ] ,
674
- claim_id: nil ,
675
669
user_id: owner . id ,
676
670
gross_amount: gross_amount ,
677
671
net_amount: amount ,
@@ -711,8 +705,6 @@ defmodule Algora.Bounties do
711
705
712
706
defp initialize_charge ( % {
713
707
id: id ,
714
- tip_id: tip_id ,
715
- bounty_id: bounty_id ,
716
708
user_id: user_id ,
717
709
gross_amount: gross_amount ,
718
710
net_amount: net_amount ,
@@ -726,8 +718,6 @@ defmodule Algora.Bounties do
726
718
provider: "stripe" ,
727
719
type: :charge ,
728
720
status: :initialized ,
729
- tip_id: tip_id ,
730
- bounty_id: bounty_id ,
731
721
user_id: user_id ,
732
722
gross_amount: gross_amount ,
733
723
net_amount: net_amount ,
@@ -739,9 +729,6 @@ defmodule Algora.Bounties do
739
729
|> Algora.Validations . validate_positive ( :net_amount )
740
730
|> Algora.Validations . validate_positive ( :total_fee )
741
731
|> foreign_key_constraint ( :user_id )
742
- |> foreign_key_constraint ( :tip_id )
743
- |> foreign_key_constraint ( :bounty_id )
744
- |> foreign_key_constraint ( :claim_id )
745
732
|> Repo . insert ( )
746
733
end
747
734
You can’t perform that action at this time.
0 commit comments