This commit is contained in:
f 2020-04-06 19:03:49 -03:00
parent fa19f1ec96
commit fd4d302e3b
No known key found for this signature in database
GPG key ID: 2AE5A13E321F953D

View file

@ -45,7 +45,7 @@ class DeployJob < ApplicationJob
end end
def notify_usuaries def notify_usuaries
@site.roles.where(rol: 'usuarie', temporal: false).pluck(:usuaries_id).each do |usuarie| @site.roles.where(rol: 'usuarie', temporal: false).pluck(:usuarie_id).each do |usuarie|
DeployMailer.with(usuarie: usuarie, site: @site.id) DeployMailer.with(usuarie: usuarie, site: @site.id)
.deployed(@deployed) .deployed(@deployed)
.deliver_now .deliver_now