File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -307,7 +307,7 @@ defmodule Algora.Bounties do
307
307
def generate_line_items ( % { amount: amount } , opts \\ [ ] ) do
308
308
ticket_ref = opts [ :ticket_ref ]
309
309
recipient = opts [ :recipient ]
310
- claims = opts [ :claims ]
310
+ claims = opts [ :claims ] || [ ]
311
311
312
312
description = if ( ticket_ref , do: "#{ ticket_ref [ :owner ] } /#{ ticket_ref [ :repo ] } ##{ ticket_ref [ :number ] } " )
313
313
@@ -393,6 +393,7 @@ defmodule Algora.Bounties do
393
393
claims: opts [ :claims ] || [ ] ,
394
394
tip_id: opts [ :tip_id ] ,
395
395
bounty_id: opts [ :bounty_id ] ,
396
+ claim_id: nil ,
396
397
amount: amount ,
397
398
creator_id: owner . id ,
398
399
group_id: tx_group_id
@@ -678,9 +679,9 @@ defmodule Algora.Bounties do
678
679
id: credit_id ,
679
680
tip_id: params . tip_id ,
680
681
bounty_id: params . bounty_id ,
681
- claim_id: params . claim_id ,
682
+ claim_id: params [ : claim_id] ,
682
683
amount: params . amount ,
683
- user_id: params . recipient_id ,
684
+ user_id: params [ : recipient_id] ,
684
685
linked_transaction_id: debit_id ,
685
686
group_id: params . group_id
686
687
} ) do
You can’t perform that action at this time.
0 commit comments