mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-15 02:41:41 +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
|
||||
|
||||
def notify_usuaries
|
||||
# TODO: existe site.usuaries_ids?
|
||||
@site.usuaries.find_each do |usuarie|
|
||||
DeployMailer.with(usuarie: usuarie.id, site: @site.id)
|
||||
@site.roles.where(rol: 'usuarie', temporal: false).pluck(:usuaries_id).each do |usuarie|
|
||||
DeployMailer.with(usuarie: usuarie, site: @site.id)
|
||||
.deployed(@deployed)
|
||||
.deliver_now
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue