diff --git a/app/v1/self.go b/app/v1/self.go index 6abe8a9..1386989 100644 --- a/app/v1/self.go +++ b/app/v1/self.go @@ -115,6 +115,7 @@ type userSettingsResponse struct { ID int `json:"id"` Username string `json:"username"` Email string `json:"email"` + Flags uint `json:"flags"` userSettingsData } @@ -129,7 +130,7 @@ SELECT u.email, s.username_aka, s.favourite_mode, s.show_custom_badge, s.custom_badge_icon, s.custom_badge_name, s.can_custom_badge, - s.play_style + s.play_style, u.flags FROM users u LEFT JOIN users_stats s ON u.id = s.id WHERE u.id = ?`, md.ID()).Scan( @@ -137,7 +138,7 @@ WHERE u.id = ?`, md.ID()).Scan( &r.Email, &r.UsernameAKA, &r.FavouriteMode, &r.CustomBadge.Show, &r.CustomBadge.Icon, &r.CustomBadge.Name, &ccb, - &r.PlayStyle, + &r.PlayStyle, &r.Flags, ) if err != nil { md.Err(err)