From 36afb4557a460b911585305892f20f16668cf1d9 Mon Sep 17 00:00:00 2001 From: Claire Date: Tue, 8 Apr 2025 16:32:17 +0200 Subject: [PATCH] Fix incorrect deprecation warning for `DELETE /api/v1/suggestions/:id` (#34397) --- app/controllers/api/v1/suggestions_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/api/v1/suggestions_controller.rb b/app/controllers/api/v1/suggestions_controller.rb index 918ec45beb..df9346832f 100644 --- a/app/controllers/api/v1/suggestions_controller.rb +++ b/app/controllers/api/v1/suggestions_controller.rb @@ -4,7 +4,7 @@ class Api::V1::SuggestionsController < Api::BaseController include Authorization include DeprecationConcern - deprecate_api '2021-05-16' + deprecate_api '2021-05-16', only: [:index] before_action -> { doorkeeper_authorize! :read, :'read:accounts' }, only: :index before_action -> { doorkeeper_authorize! :write, :'write:accounts' }, except: :index