This commit is contained in:
Grail Finder
2025-07-04 21:23:14 +03:00
parent a4dc8f4bbb
commit 0e2baa1a0f
5 changed files with 4 additions and 5 deletions

View File

@ -50,7 +50,7 @@ func (p *RepoProvider) PlayerAdd(ctx context.Context, player *models.Player) err
func (p *RepoProvider) PlayerUpdate(ctx context.Context, player *models.Player) error {
db := getDB(ctx, p.DB)
_, err := db.ExecContext(ctx, "UPDATE players SET team = ?, role = ? WHERE username = ?",
_, err := db.ExecContext(ctx, "UPDATE players SET team = ?, role = ? WHERE username = ?;",
player.Team, player.Role, player.Username)
return err
}