Skip to content

Commit

Permalink
Chore(ostor): refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
till committed Oct 28, 2024
1 parent 0eca6db commit 07f10ac
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pkg/ostor/buckets.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ const qBuckets string = "ostor-buckets"

func (o *Ostor) GetBuckets(email string) (*OstorBucketListResponse, *resty.Response, error) {
var buckets *OstorBucketListResponse
resp, err := o.get(qBuckets, map[string]string{"emailAddress": email}, &buckets)
resp, err := o.get(qBuckets, emailMap(email), &buckets)
return buckets, resp, err
}
2 changes: 1 addition & 1 deletion pkg/ostor/limits.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ const qLimits string = "ostor-limits"

func (o *Ostor) GetUserLimits(email string) (*OstorUserLimits, *resty.Response, error) {
var limits *OstorUserLimits
resp, err := o.get(qLimits, map[string]string{"emailAddress": email}, &limits)
resp, err := o.get(qLimits, emailMap(email), &limits)
return limits, resp, err
}
2 changes: 1 addition & 1 deletion pkg/ostor/user.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ func (o *Ostor) ListUsers(usage bool) (*OstorUsersListResponse, *resty.Response,

func (o *Ostor) GetUser(email string) (*OstorUser, *resty.Response, error) {
var user *OstorUser
resp, err := o.get(qUsers, map[string]string{"emailAddress": email}, &user)
resp, err := o.get(qUsers, emailMap(email), &user)
return user, resp, err
}

Expand Down

0 comments on commit 07f10ac

Please sign in to comment.