Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
SivaanandM committed Nov 13, 2024
1 parent a2507f4 commit d136ae0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion api/apiutil/transport/request.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ import (
"container/list"
"context"
"fmt"
"github.com/go-errors/errors"
"io"
"mime/multipart"
"net/http"
Expand All @@ -34,6 +33,8 @@ import (
"sync"
"time"

"github.com/go-errors/errors"

log "github.com/sirupsen/logrus"

"github.com/go-openapi/runtime"
Expand Down
2 changes: 2 additions & 0 deletions client/user.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package client
import (
"errors"
"fmt"

clientv1 "github.com/spectrocloud/palette-sdk-go/api/client/v1"
"github.com/spectrocloud/palette-sdk-go/api/models"
"github.com/spectrocloud/palette-sdk-go/client/apiutil"
Expand Down Expand Up @@ -110,6 +111,7 @@ func (h *V1Client) GetUserByEmail(email string) (*models.V1User, error) {
return nil, fmt.Errorf("user with email '%s' not found", email)
}

// GetUserByID retrieves an existing user by ID.
func (h *V1Client) GetUserByID(userUID string) (*models.V1User, error) {
params := clientv1.NewV1UsersUIDGetParams().WithUID(userUID)
resp, err := h.Client.V1UsersUIDGet(params)
Expand Down

0 comments on commit d136ae0

Please sign in to comment.