mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-08-04 21:15:19 +02:00
Preserve original transaction names when enriching (#1556)
* Preserve original transaction name * Remove stale method * Fix tests
This commit is contained in:
parent
68617514b0
commit
7be6a372bf
22 changed files with 100 additions and 76 deletions
|
@ -11,7 +11,8 @@ class Account::Syncer
|
|||
update_account_info(balances, holdings) unless account.plaid_account_id.present?
|
||||
convert_records_to_family_currency(balances, holdings) unless account.currency == account.family.currency
|
||||
|
||||
if account.family.data_enrichment_enabled?
|
||||
# Enrich if user opted in or if we're syncing transactions from a Plaid account
|
||||
if account.family.data_enrichment_enabled? || account.plaid_account_id.present?
|
||||
account.enrich_data_later
|
||||
else
|
||||
Rails.logger.info("Data enrichment is disabled, skipping enrichment for account #{account.id}")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue