summaryrefslogtreecommitdiff
path: root/lib/api/notes.rb
diff options
context:
space:
mode:
authordixpac <dino.onex@gmail.com>2016-08-13 14:45:31 +0200
committerdixpac <dino.onex@gmail.com>2017-02-08 09:16:43 +0100
commit0dacf3c169a85e6f3a1c70f3f5e377d47f770d19 (patch)
tree9a7ceb14b6a7aa96636a4024df06fa37c782a3ee /lib/api/notes.rb
parenta965edb89d3c260394ffc987832a469e7740415d (diff)
downloadgitlab-ce-0dacf3c169a85e6f3a1c70f3f5e377d47f770d19.tar.gz
Fix inconsistent naming for services that delete things
* Changed name of delete_user_service and worker to destroy * Move and change delete_group_service to Groups::DestroyService * Rename Notes::DeleteService to Notes::DestroyService
Diffstat (limited to 'lib/api/notes.rb')
-rw-r--r--lib/api/notes.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/api/notes.rb b/lib/api/notes.rb
index 4d2a8f48267..8beccaaabd1 100644
--- a/lib/api/notes.rb
+++ b/lib/api/notes.rb
@@ -131,7 +131,7 @@ module API
note = user_project.notes.find(params[:note_id])
authorize! :admin_note, note
- ::Notes::DeleteService.new(user_project, current_user).execute(note)
+ ::Notes::DestroyService.new(user_project, current_user).execute(note)
present note, with: Entities::Note
end