From 2fdfbb2eaa0d56fcad9c0040c54ada83e0acccbe Mon Sep 17 00:00:00 2001 From: f Date: Tue, 26 Mar 2024 12:28:40 -0300 Subject: [PATCH] fix: si no hay sitio para el panel usar el primer sitio --- app/controllers/env_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/env_controller.rb b/app/controllers/env_controller.rb index de61c704..500cdee4 100644 --- a/app/controllers/env_controller.rb +++ b/app/controllers/env_controller.rb @@ -4,7 +4,7 @@ class EnvController < ActionController::Base skip_before_action :verify_authenticity_token def index - @site = Site.find_by_name('panel') + @site = Site.find_by_name('panel') || Site.first stale? @site if @site end