]> git.openstreetmap.org Git - rails.git/commitdiff
Use web_timeout for notes controller
authorAndy Allan <git@gravitystorm.co.uk>
Wed, 11 Jan 2023 15:28:02 +0000 (15:28 +0000)
committerAndy Allan <git@gravitystorm.co.uk>
Wed, 11 Jan 2023 15:28:02 +0000 (15:28 +0000)
This controller doesn't handle any API methods, and so the api call
error handling isn't appropriate.

app/controllers/notes_controller.rb

index 9f2fdb7e224c84233580ec6c146ac2bb5af19da9..7d6163f4886b08ae97c7e5716c706ca69df71703 100644 (file)
@@ -7,7 +7,7 @@ class NotesController < ApplicationController
   authorize_resource
 
   before_action :set_locale
-  around_action :api_call_handle_error, :api_call_timeout
+  around_action :web_timeout
 
   ##
   # Display a list of notes by a specified user