Skip to content

Commit

Permalink
fix: fix control and query count in params
Browse files Browse the repository at this point in the history
  • Loading branch information
artaasadi committed Dec 29, 2024
1 parent 16425a8 commit 3241a2d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions services/metadata/http_routes.go
Original file line number Diff line number Diff line change
Expand Up @@ -370,14 +370,14 @@ func (h HttpHandler) ListQueryParameters(ctx echo.Context) error {

for _, c := range controls {
for _, p := range c.Query.Parameters {
if _, ok := parametersMap[p.Key]; !ok {
if _, ok := parametersMap[p.Key]; ok {
parametersMap[p.Key].ControlsCount += 1
}
}
}
for _, q := range namedQueries.Items {
for _, p := range q.Query.Parameters {
if _, ok := parametersMap[p.Key]; !ok {
if _, ok := parametersMap[p.Key]; ok {
parametersMap[p.Key].QueriesCount += 1
}
}
Expand Down

0 comments on commit 3241a2d

Please sign in to comment.