The personal finance app for everyone (by everyone)
Ruby
fix: retrieve only accounted transactions to avoid duplicates
Alessio Cappa4dbe1d8df63f
diff --git a/app/models/provider/enable_banking.rb b/app/models/provider/enable_banking.rbindex f7d214dced..09770a47af 100644--- a/app/models/provider/enable_banking.rb+++ b/app/models/provider/enable_banking.rb@@ -147,6 +147,7 @@ class Provider::EnableBankingdef get_account_transactions(account_id:, date_from: nil, date_to: nil, continuation_key: nil)encoded_id = CGI.escape(account_id.to_s)query_params = {}+ query_params[:transaction_status] = "BOOK" # Only accounted transactionsquery_params[:date_from] = date_from.to_date.iso8601 if date_fromquery_params[:date_to] = date_to.to_date.iso8601 if date_toquery_params[:continuation_key] = continuation_key if continuation_key