Merge pull request #917 from Retrospring/fix/unsubscribe-all

This commit is contained in:
Karina Kwiatek 2023-01-04 16:09:18 +00:00 committed by GitHub
commit 7823e56043
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 2 deletions

View File

@ -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