From 8ec938b2724fb75af1db3733f00e4ecac6a263a0 Mon Sep 17 00:00:00 2001 From: Zach Wasserman Date: Thu, 20 May 2021 12:27:36 -0700 Subject: [PATCH] Include null team name in teams response (#824) When a host does not have a team, return null rather than a missing team_name attribute. --- server/kolide/hosts.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/kolide/hosts.go b/server/kolide/hosts.go index 3b78f5ebc7..068231cfcd 100644 --- a/server/kolide/hosts.go +++ b/server/kolide/hosts.go @@ -157,7 +157,7 @@ type Host struct { TeamID null.Int `json:"team_id" db:"team_id"` // TeamName is the name of the team, loaded by JOIN to the teams table. - TeamName *string `json:"team_name,omitempty" db:"team_name"` + TeamName *string `json:"team_name" db:"team_name"` // Loaded via JOIN in DB PackStats []PackStats `json:"pack_stats"` }