File tree Expand file tree Collapse file tree 1 file changed +0
-4
lines changed
guard/lib/guard/grpc_servers Expand file tree Collapse file tree 1 file changed +0
-4
lines changed Original file line number Diff line number Diff line change @@ -33,7 +33,6 @@ defmodule Guard.GrpcServers.ServiceAccountServer do
33
33
role_id: role_id
34
34
} ,
35
35
fn ->
36
- # Validate input parameters
37
36
validate_uuid! ( org_id )
38
37
validate_uuid! ( creator_id )
39
38
validate_uuid! ( role_id )
@@ -42,13 +41,11 @@ defmodule Guard.GrpcServers.ServiceAccountServer do
42
41
grpc_error! ( :invalid_argument , "Service account name cannot be empty" )
43
42
end
44
43
45
- # Verify organization exists
46
44
case Organization . fetch ( org_id ) do
47
45
nil ->
48
46
grpc_error! ( :not_found , "Organization #{ org_id } not found" )
49
47
50
48
_organization ->
51
- # Create service account
52
49
params = % {
53
50
org_id: org_id ,
54
51
name: String . trim ( name ) ,
@@ -89,7 +86,6 @@ defmodule Guard.GrpcServers.ServiceAccountServer do
89
86
fn ->
90
87
validate_uuid! ( org_id )
91
88
92
- # Use default page size if not provided or invalid
93
89
effective_page_size = if page_size > 0 and page_size <= 100 , do: page_size , else: 20
94
90
effective_page_token = if page_token == "" , do: nil , else: page_token
95
91
You can’t perform that action at this time.
0 commit comments