Skip to content

Commit

Permalink
fix default metadata (#2611)
Browse files Browse the repository at this point in the history
Add forgoten place where we set metadata to hash on wallet transaction
  • Loading branch information
annvelents authored Sep 20, 2024
1 parent c0528ad commit a1cea61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/services/wallet_transactions/create_service.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def call

wallet_transactions = []
@source = params[:source] || :manual
@metadata = params[:metadata] || {}
@metadata = params[:metadata] || []
invoice_requires_successful_payment = if params.key?(:invoice_requires_successful_payment)
ActiveModel::Type::Boolean.new.cast(params[:invoice_requires_successful_payment])
else
Expand Down

0 comments on commit a1cea61

Please sign in to comment.