Skip to content

Commit

Permalink
wallet payments
Browse files Browse the repository at this point in the history
  • Loading branch information
qinmingyuan committed Jan 13, 2025
1 parent d40fb4f commit 3ff2fdf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/models/trade/model/payment.rb
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ def confirm
last.state = 'confirmed'
last.order.compute_received_amount

self.compute_checked_amount
compute_checked_amount
end

def confirm!(params = {})
Expand Down
2 changes: 1 addition & 1 deletion app/models/trade/model/payment/wallet_payment.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module Model::Payment::WalletPayment
extend ActiveSupport::Concern

included do
belongs_to :wallet
belongs_to :wallet, inverse_of: :wallet_payments
has_many :wallet_logs, ->(o){ where(wallet_id: o.wallet_id) }, as: :source
has_many :refunds, class_name: 'WalletRefund', primary_key: [:id, :wallet_id], foreign_key: [:payment_id, :wallet_id]

Expand Down

0 comments on commit 3ff2fdf

Please sign in to comment.