Skip to content

Commit

Permalink
update validate method
Browse files Browse the repository at this point in the history
Signed-off-by: nyagamunene <[email protected]>
  • Loading branch information
nyagamunene committed Dec 6, 2024
1 parent fd63022 commit 07a8787
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions auth/api/grpc/auth/requests.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,10 @@ type authPATReq struct {

func (req authPATReq) validate() error {
if req.userID == "" {
return apiutil.ErrBearerToken
return apiutil.ErrMissingUserID
}
if req.patID == "" {
return apiutil.ErrBearerToken
return apiutil.ErrMissingPATID
}
return nil

Check warning on line 71 in auth/api/grpc/auth/requests.go

View check run for this annotation

Codecov / codecov/patch

auth/api/grpc/auth/requests.go#L64-L71

Added lines #L64 - L71 were not covered by tests
}

0 comments on commit 07a8787

Please sign in to comment.