diff --git a/app/controllers/ajax/web_push_controller.rb b/app/controllers/ajax/web_push_controller.rb index 220e8300..4dd9ecdd 100644 --- a/app/controllers/ajax/web_push_controller.rb +++ b/app/controllers/ajax/web_push_controller.rb @@ -42,8 +42,6 @@ class Ajax::WebPushController < AjaxController end def unsubscribe # rubocop:disable Metrics/AbcSize - params.require(:endpoint) - removed = if params.key?(:endpoint) current_user.web_push_subscriptions.where("subscription ->> 'endpoint' = ?", params[:endpoint]).destroy_all else