Skip to content
This repository has been archived by the owner on Apr 28, 2021. It is now read-only.

Commit

Permalink
Merge pull request #61 from catarse/fix/send_user_id_to_query
Browse files Browse the repository at this point in the history
Send user id to query
  • Loading branch information
devton authored Mar 31, 2020
2 parents 564ced9 + d0c1eca commit e0245ff
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
catarse_pagarme (2.14.10)
catarse_pagarme (2.14.11)
countries (= 3.0.0)
konduto-ruby (= 2.1.0)
pagarme (= 2.1.4)
Expand Down
2 changes: 1 addition & 1 deletion app/models/catarse_pagarme/credit_card_transaction.rb
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def authorize!
end

def was_credit_card_used_before?
PaymentEngines.was_credit_card_used_before?(self.transaction.card.id)
PaymentEngines.was_credit_card_used_before?(self.transaction.card.id, self.attributes.dig(:customer, :id))
end

def process_antifraud
Expand Down
2 changes: 1 addition & 1 deletion lib/catarse_pagarme/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module CatarsePagarme
VERSION = "2.14.10"
VERSION = "2.14.11"
end

0 comments on commit e0245ff

Please sign in to comment.