Skip to content

Commit

Permalink
Truncate the ID here too
Browse files Browse the repository at this point in the history
  • Loading branch information
scottrobertson committed Jul 21, 2018
1 parent 963f1cc commit bd326a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/services/ynab/transaction_creator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def initialize(id: nil, date: nil, amount: nil, payee_name: nil, description: tr

def create
create = @client.create_transaction(
id: @id,
id: @id.to_s.truncate(36),
payee_name: @payee_name.to_s.truncate(50),
amount: @amount,
cleared: @cleared,
Expand Down

0 comments on commit bd326a0

Please sign in to comment.