Skip to content

Commit

Permalink
Updated validation with lint
Browse files Browse the repository at this point in the history
Signed-off-by: root <swale@msystechnologies.com>
  • Loading branch information
sonali523 committed Sep 2, 2021
1 parent 0ca84a3 commit 26462c4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/infra-proxy-service/server/roles.go
Original file line number Diff line number Diff line change
Expand Up @@ -279,8 +279,8 @@ func (s *Server) DeleteRole(ctx context.Context, req *request.Role) (*response.R
// UpdateRole updates the role
func (s *Server) UpdateRole(ctx context.Context, req *request.UpdateRole) (*response.Role, error) {
err := validation.New(validation.Options{
Target: "role",
Request: *req,
Target: "role",
Request: *req,
Rules: validation.Rules{
"OrgId": []string{"required"},
"ServerId": []string{"required"},
Expand Down

0 comments on commit 26462c4

Please sign in to comment.