summaryrefslogtreecommitdiff
path: root/lib/api/boards_responses.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/api/boards_responses.rb')
-rw-r--r--lib/api/boards_responses.rb10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/api/boards_responses.rb b/lib/api/boards_responses.rb
index 86d9b24802f..0c0643ad9e1 100644
--- a/lib/api/boards_responses.rb
+++ b/lib/api/boards_responses.rb
@@ -33,12 +33,12 @@ module API
def move_list(list)
move_list_service =
- ::Boards::Lists::MoveService.new(board_parent, current_user, { position: params[:position].to_i })
+ ::Boards::Lists::MoveService.new(board_parent, current_user, {position: params[:position].to_i})
if move_list_service.execute(list)
present list, with: Entities::List
else
- render_api_error!({ error: "List could not be moved!" }, 400)
+ render_api_error!({error: "List could not be moved!"}, 400)
end
end
@@ -46,7 +46,7 @@ module API
destroy_conditionally!(list) do |list|
service = ::Boards::Lists::DestroyService.new(board_parent, current_user)
unless service.execute(list)
- render_api_error!({ error: 'List could not be deleted!' }, 400)
+ render_api_error!({error: "List could not be deleted!"}, 400)
end
end
end
@@ -54,13 +54,13 @@ module API
# rubocop: disable CodeReuse/ActiveRecord
def authorize_list_type_resource!
unless available_labels_for(board_parent).exists?(params[:label_id])
- render_api_error!({ error: 'Label not found!' }, 400)
+ render_api_error!({error: "Label not found!"}, 400)
end
end
# rubocop: enable CodeReuse/ActiveRecord
params :list_creation_params do
- requires :label_id, type: Integer, desc: 'The ID of an existing label'
+ requires :label_id, type: Integer, desc: "The ID of an existing label"
end
end
end