Skip to content

Commit

Permalink
Remove old stats writes (#50)
Browse files Browse the repository at this point in the history
  • Loading branch information
cmyui authored Apr 21, 2024
1 parent 0c756be commit 6697a72
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions app/v1/self.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,12 +87,7 @@ func UsersSelfSettingsPOST(md common.MethodData) common.CodeMessager {
Add("custom_badge_icon", d.CustomBadge.Icon).
Add("show_custom_badge", d.CustomBadge.Show).
Add("play_style", d.PlayStyle)
_, err := md.DB.Exec("UPDATE users_stats SET "+q.Fields()+" WHERE id = ?", append(q.Parameters, md.ID())...)
if err != nil {
md.Err(err)
return Err500
}
_, err = md.DB.Exec("UPDATE users SET "+q.Fields()+" WHERE id = ?", append(q.Parameters, md.ID())...)
_, err := md.DB.Exec("UPDATE users SET "+q.Fields()+" WHERE id = ?", append(q.Parameters, md.ID())...)
if err != nil {
md.Err(err)
return Err500
Expand Down

0 comments on commit 6697a72

Please sign in to comment.