Fix error handling for items relationships destroy action [SCI-9718] (#6911)

This commit is contained in:
Soufiane 2024-01-09 15:31:21 +01:00 committed by GitHub
parent a6c0c7294b
commit 5b365fce3b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -78,10 +78,10 @@ class RepositoryRowConnectionsController < ApplicationController
connection.destroy!
head :no_content
end
rescue StandardError
head :unprocessable_entity
end
end
def repositories
repositories = Repository.accessible_by_teams(current_team)