mirror of
https://github.com/fleetdm/fleet
synced 2026-05-23 17:08:53 +00:00
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.
This commit is contained in:
parent
82fe7c0035
commit
8ec938b272
1 changed files with 1 additions and 1 deletions
|
|
@ -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"`
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue