2024-03-08 01:53:37 +11:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
class AcceptNotificationRequestService < BaseService
|
|
|
|
def call(request)
|
|
|
|
NotificationPermission.create!(account: request.account, from_account: request.from_account)
|
2024-08-14 17:34:30 +10:00
|
|
|
UnfilterNotificationsWorker.perform_async(request.account_id, request.from_account_id)
|
|
|
|
request.destroy!
|
2024-03-08 01:53:37 +11:00
|
|
|
end
|
|
|
|
end
|