Skip to content

Commit

Permalink
fix name
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielW8088 committed Feb 23, 2023
1 parent b5d8ae5 commit a039973
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions user.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,19 +19,19 @@ type Data struct {
DeletedAt interface{} `json:"deleted_at"`
}

func (s *Shell) GetUserSubdomain(wallet string, source string) (subdmoanList []string, err error) {
func (s *Shell) GetUserSubdomain(wallet string, source string) (subdomainList []string, err error) {
url := "gateway/get_user_gateway"
resq, err := s.Request(url).Option("wallet", wallet).Option("source", source).AclGet(context.Background())
if err != nil {
return subdmoanList, err
return subdomainList, err
}
var gatewayList GateWayList
decoder := json.NewDecoder(resq.Output)
decoder.Decode(&gatewayList)
for _, gateway := range gatewayList.Data {
if gateway.IsActive {
subdmoanList = append(subdmoanList, gateway.Subdomain)
subdomainList = append(subdomainList, gateway.Subdomain)
}
}
return subdmoanList, err
return subdomainList, err
}

0 comments on commit a039973

Please sign in to comment.