From ecc4224d0a0c7befc5b979be96cc62df3941e62e Mon Sep 17 00:00:00 2001 From: jazzari Date: Tue, 23 Apr 2024 12:45:52 -0300 Subject: [PATCH] fix: corregido parametro de job #13244 --- app/services/concerns/auto_publish_concern.rb | 2 +- app/services/post_service.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/services/concerns/auto_publish_concern.rb b/app/services/concerns/auto_publish_concern.rb index 81f81aad..19160f02 100644 --- a/app/services/concerns/auto_publish_concern.rb +++ b/app/services/concerns/auto_publish_concern.rb @@ -6,7 +6,7 @@ module AutoPublishConcern included do def auto_publish! - DeployJob.perform_later(site.id) if site.auto_publish? + DeployJob.perform_later(site) if site.auto_publish? end end end diff --git a/app/services/post_service.rb b/app/services/post_service.rb index e9305c34..9cc41323 100644 --- a/app/services/post_service.rb +++ b/app/services/post_service.rb @@ -31,7 +31,7 @@ PostService = Struct.new(:site, :usuarie, :post, :params, keyword_init: true) do # Crear un post anónimo, con opciones más limitadas. No usamos post. def create_anonymous # XXX: Confiamos en el parámetro de idioma porque estamos - # verificándolos extend ActiveSupport::Concernn Site#posts + # verificándolos en Site#posts self.post = site.posts(lang: locale) .build(layout: layout) # Los artículos anónimos siempre son borradores