Skip to content

Commit

Permalink
graph changes (#1310)
Browse files Browse the repository at this point in the history
  • Loading branch information
shay23b authored Sep 11, 2023
1 parent 0ba2e40 commit 5e7f7f5
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
4 changes: 2 additions & 2 deletions db/db.go
Original file line number Diff line number Diff line change
Expand Up @@ -2963,9 +2963,9 @@ func GetConsumersForGraph(tenantName string) ([]models.ConsumerForGraph, error)
return []models.ConsumerForGraph{}, err
}
defer conn.Release()
query := `SELECT c.name, c.consumers_group, c.station_id, c.app_id, c.is_active
query := `SELECT c.name, c.consumers_group, c.station_id, c.app_id
FROM consumers AS c
WHERE c.tenant_name = $1
WHERE c.tenant_name = $1 AND c.is_active = true
ORDER BY c.name, c.station_id DESC
LIMIT 10000;`
stmt, err := conn.Conn().Prepare(ctx, "get_consumers_for_graph", query)
Expand Down
1 change: 0 additions & 1 deletion models/consumers.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,5 +120,4 @@ type ConsumerForGraph struct {
Name string `json:"name"`
StationId int `json:"station_id"`
AppId string `json:"app_id"`
IsActive bool `json:"is_active"`
}
1 change: 0 additions & 1 deletion models/producers.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ type ProducerForGraph struct {
Name string `json:"name"`
StationId int `json:"station_id"`
AppId string `json:"app_id"`
IsActive bool `json:"is_active"`
}

type ProducerForGraphWithCount struct {
Expand Down

0 comments on commit 5e7f7f5

Please sign in to comment.