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