Fix #61 - Add list of blocked users to the UI; clean up failed push notifications API
Try to fix Travis CI setup
This commit is contained in:
@ -10,7 +10,6 @@ class NotifyService < BaseService
|
||||
|
||||
create_notification
|
||||
send_email if email_enabled?
|
||||
send_push_notification
|
||||
rescue ActiveRecord::RecordInvalid
|
||||
return
|
||||
end
|
||||
@ -58,10 +57,6 @@ class NotifyService < BaseService
|
||||
NotificationMailer.send(@notification.type, @recipient, @notification).deliver_later
|
||||
end
|
||||
|
||||
def send_push_notification
|
||||
PushNotificationWorker.perform_async(@notification.id)
|
||||
end
|
||||
|
||||
def email_enabled?
|
||||
@recipient.user.settings.notification_emails[@notification.type]
|
||||
end
|
||||
|
Reference in New Issue
Block a user