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

Merge branch 'informative-deploys' into panel.sutty.nl
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
f 2023-03-23 12:00:57 -03:00
commit a69d7b6d94

View file

@ -12,10 +12,11 @@ class DeployMailer < ApplicationMailer
include ActionView::Helpers::DateHelper
# rubocop:disable Metrics/AbcSize
def deployed(deploys)
def deployed(deploys = {})
usuarie = Usuarie.find(params[:usuarie])
site = usuarie.sites.find(params[:site])
hostname = site.hostname
deploys ||= {}
# Informamos a cada quien en su idioma y damos una dirección de
# respuesta porque a veces les usuaries nos escriben