1
0
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:
Ferdinand Mütsch 2022-05-16 23:23:18 +02:00
parent 45d4ba89f5
commit 4a4e19fcbd

View File

@ -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