diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-10-04 09:10:22 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-10-04 09:10:22 +0300 |
commit | b5029334981dea8dbda5ac0b69722adcc8490035 (patch) | |
tree | e303ccd133ad750c44833537345c20c9f2b55e69 /app/services/notes | |
parent | 7feabd8d8ef235e1a2376bb6879caea1b88b178d (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/services/notes')
-rw-r--r-- | app/services/notes/quick_actions_service.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/services/notes/quick_actions_service.rb b/app/services/notes/quick_actions_service.rb index cba7398ebc0..1b852710677 100644 --- a/app/services/notes/quick_actions_service.rb +++ b/app/services/notes/quick_actions_service.rb @@ -61,7 +61,7 @@ module Notes service_errors = if service_response.respond_to?(:errors) service_response.errors.full_messages elsif service_response.respond_to?(:[]) && service_response[:status] == :error - service_response[:message] + Array.wrap(service_response[:message]) end service_errors.blank? ? ServiceResponse.success : ServiceResponse.error(message: service_errors) |