Sha256: 00e70fc1c086137076252f9a126cd4bdd098128406c34bcb532fe9e4113b32e7
Contents?: true
Size: 469 Bytes
Versions: 25
Compression:
Stored size: 469 Bytes
Contents
# frozen_string_literal: true module Decidim module Meetings class SendCloseMeetingReminderJob < ApplicationJob queue_as :close_meeting_reminder def perform(record) return if record.remindable.closed? ::Decidim::ReminderDelivery.create(reminder: record.reminder) ::Decidim::Meetings::CloseMeetingReminderMailer.close_meeting_reminder(record).deliver_now record.update(state: "completed") end end end end
Version data entries
25 entries across 25 versions & 1 rubygems