mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-08-02 20:15:22 +02:00
Make transaction enrichment opt-in for all users (#1552)
This commit is contained in:
parent
ba878c3d8b
commit
68617514b0
12 changed files with 46 additions and 35 deletions
|
@ -11,7 +11,7 @@ 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 Setting.data_enrichment_enabled || Rails.configuration.app_mode.managed?
|
||||
if account.family.data_enrichment_enabled?
|
||||
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