about summary refs log tree commit diff
path: root/app/controllers/api/v1/notifications_controller.rb
diff options
context:
space:
mode:
authorNick Schonning <nschonni@gmail.com>2023-02-20 20:21:48 -0500
committerGitHub <noreply@github.com>2023-02-21 10:21:48 +0900
commit434770f580016acff6bdb51dc6715bffefb44150 (patch)
treedffe017f681d0ad26a581e684ec8e5886b568d12 /app/controllers/api/v1/notifications_controller.rb
parent35d032500b7e8c56d3fe3a05bcaa3bddb447b67a (diff)
Autofix Rubocop Rails/FindById (#23762)
Diffstat (limited to 'app/controllers/api/v1/notifications_controller.rb')
-rw-r--r--app/controllers/api/v1/notifications_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/api/v1/notifications_controller.rb b/app/controllers/api/v1/notifications_controller.rb
index 2024d521c..8414f6b25 100644
--- a/app/controllers/api/v1/notifications_controller.rb
+++ b/app/controllers/api/v1/notifications_controller.rb
@@ -24,7 +24,7 @@ class Api::V1::NotificationsController < Api::BaseController
   end
 
   def dismiss
-    current_account.notifications.find_by!(id: params[:id]).destroy!
+    current_account.notifications.find(params[:id]).destroy!
     render_empty
   end