|
class SendStepNotification
@queue = :step_notifications
def self.perform(step_id, notification_type)
step = AgentStep.find(step_id)
case notification_type
when 'validated'
# Send Step Validation Notification Email
MissionMailer.step_validation_notification(step).deliver
when 'denied'
# Send Step Denied Notification Email
MissionMailer.step_denied_notification(step).deliver
end
end
end
|