1
0
Fork 0
mirror of https://github.com/maybe-finance/maybe.git synced 2025-08-04 21:15:19 +02:00

Revert "Add env to toggle provider price syncs"
Some checks failed
Publish Docker image / ci (push) Has been cancelled
Publish Docker image / Build docker image (push) Has been cancelled

This reverts commit 0006b6f6ca.
This commit is contained in:
Zach Gollwitzer 2025-05-09 17:47:35 -04:00
parent 0006b6f6ca
commit a268c5a563
2 changed files with 0 additions and 4 deletions

View file

@ -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