glitch-soc/mastodon

View on GitHub
app/services/dismiss_notification_request_service.rb

Summary

Maintainability
A
0 mins
Test Coverage
# frozen_string_literal: true

class DismissNotificationRequestService < BaseService
  def call(request)
    FilteredNotificationCleanupWorker.perform_async(request.account_id, request.from_account_id)
    request.destroy!
  end
end