Skip to content
Snippets Groups Projects
Commit 85fef75b authored by ArtOfCode-'s avatar ArtOfCode-
Browse files

Set a To address

parent b06fb96b
No related branches found
No related tags found
No related merge requests found
...@@ -8,6 +8,6 @@ class AdminMailer < ApplicationMailer ...@@ -8,6 +8,6 @@ class AdminMailer < ApplicationMailer
"INNER JOIN community_users cu ON cu.user_id = u.id WHERE s.type = 'moderators' AND " \ "INNER JOIN community_users cu ON cu.user_id = u.id WHERE s.type = 'moderators' AND " \
'(u.is_global_admin = 1 OR u.is_global_moderator = 1 OR cu.is_admin = 1 OR cu.is_moderator = 1)' '(u.is_global_admin = 1 OR u.is_global_moderator = 1 OR cu.is_admin = 1 OR cu.is_moderator = 1)'
emails = ActiveRecord::Base.connection.execute(query).to_a.flatten emails = ActiveRecord::Base.connection.execute(query).to_a.flatten
mail subject: "Codidact Moderators: #{@subject}", bcc: emails mail subject: "Codidact Moderators: #{@subject}", to: 'moderators-noreply@codidact.org', bcc: emails
end end
end end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment