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

fix: si no hay sitio para el panel usar el primer sitio

This commit is contained in:
f 2024-03-26 12:28:40 -03:00
parent a27d68cf54
commit 2fdfbb2eaa
No known key found for this signature in database

View file

@ -4,7 +4,7 @@ class EnvController < ActionController::Base
skip_before_action :verify_authenticity_token skip_before_action :verify_authenticity_token
def index def index
@site = Site.find_by_name('panel') @site = Site.find_by_name('panel') || Site.first
stale? @site if @site stale? @site if @site
end end