From e4af28b8fff49b0cc2ee19fa8521a3e42c932676 Mon Sep 17 00:00:00 2001 From: Morgan Bazalgette Date: Sun, 11 Dec 2016 18:38:36 +0100 Subject: [PATCH] Add flags to UsersSelfSettingsGET --- app/v1/self.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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)