Skip to content

armgit / maybe

Public Imported from GitHub
0

The personal finance app for everyone

Revert "Add env to toggle provider price syncs"

Zach Gollwitzera268c5a563a6
diff --git a/app/models/security/provided.rb b/app/models/security/provided.rb
index e230b82f..b342c9e5 100644
--- a/app/models/security/provided.rb
+++ b/app/models/security/provided.rb
@@ -29,8 +29,6 @@ module Security::Provided
end
def sync_provider_prices(start_date:, end_date: Date.current)
- return 0 unless ENV["PROVIDER_PRICE_SYNC_ENABLED"] == "true"
-
unless has_prices?
Rails.logger.warn("Security id=#{id} ticker=#{ticker} is not known by provider, skipping price sync")
return 0
diff --git a/test/test_helper.rb b/test/test_helper.rb
index b586da49..23f98faa 100644
--- a/test/test_helper.rb
+++ b/test/test_helper.rb
@@ -13,8 +13,6 @@ ENV["RAILS_ENV"] ||= "test"
# https://github.com/ged/ruby-pg/issues/538#issuecomment-1591629049
ENV["PGGSSENCMODE"] = "disable"
-ENV["PROVIDER_PRICE_SYNC_ENABLED"] = "true"
-
require "rails/test_help"
require "minitest/mock"
require "minitest/autorun"