Skip to content

Commit

Permalink
Automatically sync comunicacion@ and software@ mailing lists.
Browse files Browse the repository at this point in the history
This is part of #21.
  • Loading branch information
AlbertoPdRF committed Sep 8, 2019
1 parent 52a7ef2 commit e950c0f
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lib/tasks/scheduler.rake
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,14 @@ namespace :scheduler do
board_members = User.select(&:board).map(&:ams_email)
sync_job_messages << GsuiteMailingLists.sync_group("[email protected]", board_members)

# Mailing list for the communication team
communication_members = User.select(&:communication).map(&:ams_email)
sync_job_messages << GsuiteMailingLists.sync_group("[email protected]", communication_members)

# Mailing list for the software team
software_members = User.select(&:software).map(&:ams_email)
sync_job_messages << GsuiteMailingLists.sync_group("[email protected]", software_members)

# Mailing list for automatic notifications to subscribers
subscribers_with_notifications = User.subscription_notification_enabled.with_active_subscription.map(&:ams_email)
sync_job_messages << GsuiteMailingLists.sync_group("[email protected]", subscribers_with_notifications)
Expand Down

0 comments on commit e950c0f

Please sign in to comment.