31c07771e8
fixes: #895 fixes: #1118 fixes: #1075 Co-authored-by: Pranav Raj S <pranav@thoughtwoot.com>
10 lines
311 B
Ruby
10 lines
311 B
Ruby
class Notification::EmailNotificationJob < ApplicationJob
|
|
queue_as :default
|
|
|
|
def perform(notification)
|
|
# no need to send email if notification has been read already
|
|
return if notification.read_at.present?
|
|
|
|
Notification::EmailNotificationService.new(notification: notification).perform
|
|
end
|
|
end
|