mirror of
https://github.com/muety/wakapi.git
synced 2023-08-10 21:12:56 +03:00
fix: error when querying with label filter (resolve #374)
This commit is contained in:
parent
45d4ba89f5
commit
4a4e19fcbd
@ -258,7 +258,7 @@ func (srv *HeartbeatService) countCacheTtl() time.Duration {
|
||||
|
||||
func (srv *HeartbeatService) filtersToColumnMap(filters *models.Filters) map[string][]string {
|
||||
columnMap := map[string][]string{}
|
||||
for _, t := range models.SummaryTypes() {
|
||||
for _, t := range models.NativeSummaryTypes() {
|
||||
f := filters.ResolveEntity(t)
|
||||
if len(*f) > 0 {
|
||||
columnMap[models.GetEntityColumn(t)] = *f
|
||||
|
Loading…
Reference in New Issue
Block a user