mirror of
https://github.com/we-promise/sure.git
synced 2026-04-19 12:04:08 +00:00
Make transaction enrichment opt-in for all users (#1552)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user