mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-08-05 13:35:21 +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}")
|
||||
|
|
|
@ -17,10 +17,6 @@ class Setting < RailsSettings::Base
|
|||
default: ENV.fetch("UPGRADES_TARGET", "release"),
|
||||
validates: { inclusion: { in: %w[release commit] } }
|
||||
|
||||
field :data_enrichment_enabled,
|
||||
type: :boolean,
|
||||
default: false
|
||||
|
||||
field :synth_api_key, type: :string, default: ENV["SYNTH_API_KEY"]
|
||||
|
||||
field :require_invite_for_signup, type: :boolean, default: false
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue