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:
parent
77e13c2bc9
commit
920ba5fc4e
16 changed files with 186 additions and 69 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue