Skip to content
Snippets Groups Projects

Resolve "Revoked/Created agent access tokens should fire audit events"

All threads resolved!
6 files
+ 12
15
Compare changes
  • Side-by-side
  • Inline
Files
6
@@ -17,8 +17,7 @@ class Revoke < BaseMutation
def resolve(id:)
token = authorized_find!(id: id)
::Clusters::AgentTokens::RevokeService.new(current_project: token.agent.project, current_user: current_user,
token: token).execute
::Clusters::AgentTokens::RevokeService.new(token: token, current_user: current_user).execute
{ errors: errors_on_object(token) }
end
Loading