Fix teams JSON key (#492)

Use lowercase `teams` rather than `Teams`.
This commit is contained in:
Zach Wasserman 2021-03-18 09:16:50 -07:00
parent 3286864d9d
commit a85b18ea38

View file

@ -105,7 +105,7 @@ type User struct {
GlobalRole null.String `json:"global_role" db:"global_role"`
// Teams is the teams this user has roles in.
Teams []UserTeam
Teams []UserTeam `json:"teams"`
}
type UserTeam struct {