Skip to content

Commit

Permalink
Remove flags
Browse files Browse the repository at this point in the history
  • Loading branch information
cmyui committed Apr 20, 2024
1 parent 860993c commit 7536c4f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 11 deletions.
5 changes: 2 additions & 3 deletions app/v1/self.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,6 @@ type userSettingsResponse struct {
ID int `json:"id"`
Username string `json:"username"`
Email string `json:"email"`
Flags uint `json:"flags"`
userSettingsData
}

Expand All @@ -115,15 +114,15 @@ 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, u.flags
s.play_style
FROM users u
LEFT JOIN users_stats s ON u.id = s.id
WHERE u.id = ?`, md.ID()).Scan(
&r.ID, &r.Username,
&r.Email, &r.UsernameAKA, &r.FavouriteMode,
&r.CustomBadge.Show, &r.CustomBadge.Icon,
&r.CustomBadge.Name, &ccb,
&r.PlayStyle, &r.Flags,
&r.PlayStyle,
)
if err != nil {
md.Err(err)
Expand Down
8 changes: 0 additions & 8 deletions common/flags.go

This file was deleted.

0 comments on commit 7536c4f

Please sign in to comment.