mirror of
https://github.com/we-promise/sure.git
synced 2026-04-18 03:24:09 +00:00
Fix account sync when prices missing (#1127)
This commit is contained in:
@@ -16,7 +16,7 @@ class Issue::PricesMissing < Issue
|
||||
missing_prices.each do |ticker, dates|
|
||||
next unless issuable.owns_ticker?(ticker)
|
||||
|
||||
oldest_date = dates.min
|
||||
oldest_date = dates.min.to_date
|
||||
expected_price_count = (oldest_date..Date.current).count
|
||||
prices = Security::Price.find_prices(ticker: ticker, start_date: oldest_date)
|
||||
stale = false if prices.count < expected_price_count
|
||||
|
||||
Reference in New Issue
Block a user