mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-07-25 16:19:40 +02:00
Revert "Add env to toggle provider price syncs"
This reverts commit 0006b6f6ca
.
This commit is contained in:
parent
0006b6f6ca
commit
a268c5a563
2 changed files with 0 additions and 4 deletions
|
@ -29,8 +29,6 @@ module Security::Provided
|
||||||
end
|
end
|
||||||
|
|
||||||
def sync_provider_prices(start_date:, end_date: Date.current)
|
def sync_provider_prices(start_date:, end_date: Date.current)
|
||||||
return 0 unless ENV["PROVIDER_PRICE_SYNC_ENABLED"] == "true"
|
|
||||||
|
|
||||||
unless has_prices?
|
unless has_prices?
|
||||||
Rails.logger.warn("Security id=#{id} ticker=#{ticker} is not known by provider, skipping price sync")
|
Rails.logger.warn("Security id=#{id} ticker=#{ticker} is not known by provider, skipping price sync")
|
||||||
return 0
|
return 0
|
||||||
|
|
|
@ -13,8 +13,6 @@ ENV["RAILS_ENV"] ||= "test"
|
||||||
# https://github.com/ged/ruby-pg/issues/538#issuecomment-1591629049
|
# https://github.com/ged/ruby-pg/issues/538#issuecomment-1591629049
|
||||||
ENV["PGGSSENCMODE"] = "disable"
|
ENV["PGGSSENCMODE"] = "disable"
|
||||||
|
|
||||||
ENV["PROVIDER_PRICE_SYNC_ENABLED"] = "true"
|
|
||||||
|
|
||||||
require "rails/test_help"
|
require "rails/test_help"
|
||||||
require "minitest/mock"
|
require "minitest/mock"
|
||||||
require "minitest/autorun"
|
require "minitest/autorun"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue