diff --git a/backend/routes/auth/routes.go b/backend/routes/auth/routes.go index fe9a284..b5324fc 100644 --- a/backend/routes/auth/routes.go +++ b/backend/routes/auth/routes.go @@ -21,7 +21,7 @@ type Server struct { type userResponse struct { ID xid.ID `json:"id"` - Username string `json:"username"` + Username string `json:"name"` DisplayName *string `json:"display_name"` Bio *string `json:"bio"` AvatarURLs []string `json:"avatar_urls"` diff --git a/backend/routes/member/get_member.go b/backend/routes/member/get_member.go index 7f9174c..0bfa1bc 100644 --- a/backend/routes/member/get_member.go +++ b/backend/routes/member/get_member.go @@ -50,7 +50,7 @@ func dbMemberToMember(u db.User, m db.Member, names []db.Name, pronouns []db.Pro type PartialUser struct { ID xid.ID `json:"id"` - Username string `json:"username"` + Username string `json:"name"` DisplayName *string `json:"display_name"` AvatarURLs []string `json:"avatar_urls"` } diff --git a/backend/routes/user/get_user.go b/backend/routes/user/get_user.go index e4e0d75..bdc9a77 100644 --- a/backend/routes/user/get_user.go +++ b/backend/routes/user/get_user.go @@ -13,7 +13,7 @@ import ( type GetUserResponse struct { ID xid.ID `json:"id"` - Username string `json:"username"` + Username string `json:"name"` DisplayName *string `json:"display_name"` Bio *string `json:"bio"` AvatarURLs []string `json:"avatar_urls"`