Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
f566f1be
Commit
f566f1be
authored
Jun 08, 2020
by
Jarka Košanová
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use errors method of ServiceResponse
parent
a99f7b98
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
app/graphql/mutations/alert_management/update_alert_status.rb
...graphql/mutations/alert_management/update_alert_status.rb
+1
-1
app/graphql/mutations/container_expiration_policies/update.rb
...graphql/mutations/container_expiration_policies/update.rb
+1
-1
No files found.
app/graphql/mutations/alert_management/update_alert_status.rb
View file @
f566f1be
...
...
@@ -27,7 +27,7 @@ module Mutations
def
prepare_response
(
result
)
{
alert:
result
.
payload
[
:alert
],
errors:
result
.
error
?
?
[
result
.
message
]
:
[]
errors:
result
.
error
s
}
end
end
...
...
app/graphql/mutations/container_expiration_policies/update.rb
View file @
f566f1be
...
...
@@ -48,7 +48,7 @@ module Mutations
{
container_expiration_policy:
result
.
payload
[
:container_expiration_policy
],
errors:
result
.
error
?
?
[
result
.
message
]
:
[]
errors:
result
.
error
s
}
end
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment