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:
parent
7e575372cf
commit
a703eb4096
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue