Skip to content

Commit

Permalink
Fix the incorrect response from docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrei Petriv committed Jul 25, 2021
1 parent e0a7f30 commit 309afae
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions pkg/siteshield/siteshield_map.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,10 @@ type (
}

GetSiteShieldMapsResponse struct {
SiteShieldMaps []SSMap `json:"siteShieldMaps"`
SiteShieldMaps []SiteShieldMapResponse `json:"siteShieldMaps"`
}

SiteShieldMapResponse struct {
SiteShieldMap SSMap `json:"siteShieldMap"`
}

SSMap struct {
Acknowledged bool `json:"acknowledged"`
Contacts []string `json:"contacts"`
CurrentCidrs []string `json:"currentCidrs"`
Expand Down Expand Up @@ -142,7 +138,7 @@ func (s *siteshieldmap) AckSiteShieldMap(ctx context.Context, params SiteShieldM
}

logger := s.Log(ctx)
logger.Debug("UpdateSiteShieldMap")
logger.Debug("AckSiteShieldMap")

postURL := fmt.Sprintf("/siteshield/v1/maps/%d/acknowledge", params.UniqueID)

Expand Down

0 comments on commit 309afae

Please sign in to comment.