mirror of
https://0xacab.org/sutty/sutty
synced 2025-01-19 17:03:38 +00:00
solo notificar a les usuaries confirmades
This commit is contained in:
parent
c1d69c6db4
commit
bdedaf67cc
1 changed files with 2 additions and 3 deletions
|
@ -45,9 +45,8 @@ class DeployJob < ApplicationJob
|
||||||
end
|
end
|
||||||
|
|
||||||
def notify_usuaries
|
def notify_usuaries
|
||||||
# TODO: existe site.usuaries_ids?
|
@site.roles.where(rol: 'usuarie', temporal: false).pluck(:usuaries_id).each do |usuarie|
|
||||||
@site.usuaries.find_each do |usuarie|
|
DeployMailer.with(usuarie: usuarie, site: @site.id)
|
||||||
DeployMailer.with(usuarie: usuarie.id, site: @site.id)
|
|
||||||
.deployed(@deployed)
|
.deployed(@deployed)
|
||||||
.deliver_now
|
.deliver_now
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue