5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-16 17:36:22 +00:00

no fallar si el sitio no existe

This commit is contained in:
f 2022-04-26 16:57:16 -03:00
parent 7e575372cf
commit a703eb4096

View file

@ -20,6 +20,7 @@ class UriCollectionJob < PeriodicJob
def perform(site_id:, once: true)
@site = Site.find site_id
return unless File.directory? destination
# Recordar la última vez que se corrió la tarea
stat = site.stats.create! name: STAT_NAME