change struct

Signed-off-by: Hadi <[email protected]>
This commit is contained in:
Hadi
2025-05-27 20:01:05 +02:00
parent c498e7bfdd
commit 637d9811f2
10 changed files with 55 additions and 55 deletions
+2 -2
View File
@@ -12,9 +12,9 @@ type OrgResult struct {
}
func (r Recon) Orgs(username string) (response []OrgResult) {
orgs, resp, err := r.client.Organizations.List(r.ctx, username, nil)
orgs, resp, err := r.Client.Organizations.List(r.Ctx, username, nil)
if err != nil {
r.logger.Error("Failed to fetch organizations", "err", err)
r.Logger.Error("Failed to fetch organizations", "err", err)
} else if len(orgs) == 0 {
r.PrintTitle("🏢 Organizations")
r.PrintInfo("INFO", "No Organizations found")