Updated FetchLinkCardService to update card in shorter period

• Updated:
- FetchLinkCardService to update card in shorter period from 1week to 12hr
This commit is contained in:
mgabdev 2020-11-04 13:47:27 -06:00
parent 3ac94fe610
commit 8a1f2f2c47
1 changed files with 1 additions and 1 deletions

View File

@ -30,7 +30,7 @@ class FetchLinkCardService < BaseService
RedisLock.acquire(lock_options) do |lock|
if lock.acquired?
@card = PreviewCard.find_by(url: @url)
process_url if @card.nil? || @card.updated_at <= 1.weeks.ago || @card.missing_image?
process_url if @card.nil? || @card.updated_at <= 12.hours.ago || @card.missing_image?
else
raise GabSocial::RaceConditionError
end