Sha256: ae68942c3ada7804932c1cd1858e8e99376eaf30052b00047b8ae3f26042a329

Contents?: true

Size: 384 Bytes

Versions: 13

Compression:

Stored size: 384 Bytes

Contents

# frozen_string_literal: true

module Decidim
  module Budgets
    class SendVoteReminderJob < ApplicationJob
      queue_as :vote_reminder

      def perform(reminder)
        return if reminder.records.active.blank?

        ::Decidim::ReminderDelivery.create(reminder:)
        ::Decidim::Budgets::VoteReminderMailer.vote_reminder(reminder).deliver_now
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
decidim-budgets-0.29.1 app/jobs/decidim/budgets/send_vote_reminder_job.rb
decidim-budgets-0.28.4 app/jobs/decidim/budgets/send_vote_reminder_job.rb
decidim-budgets-0.29.0 app/jobs/decidim/budgets/send_vote_reminder_job.rb
decidim-budgets-0.28.3 app/jobs/decidim/budgets/send_vote_reminder_job.rb
decidim-budgets-0.29.0.rc4 app/jobs/decidim/budgets/send_vote_reminder_job.rb
decidim-budgets-0.29.0.rc3 app/jobs/decidim/budgets/send_vote_reminder_job.rb
decidim-budgets-0.29.0.rc2 app/jobs/decidim/budgets/send_vote_reminder_job.rb
decidim-budgets-0.29.0.rc1 app/jobs/decidim/budgets/send_vote_reminder_job.rb
decidim-budgets-0.28.2 app/jobs/decidim/budgets/send_vote_reminder_job.rb
decidim-budgets-0.28.1 app/jobs/decidim/budgets/send_vote_reminder_job.rb
decidim-budgets-0.28.0 app/jobs/decidim/budgets/send_vote_reminder_job.rb
decidim-budgets-0.28.0.rc5 app/jobs/decidim/budgets/send_vote_reminder_job.rb
decidim-budgets-0.28.0.rc4 app/jobs/decidim/budgets/send_vote_reminder_job.rb