Fix bug with table presetting and add table couter and fix the join table

This commit is contained in:
Jonas Hahn
2025-09-18 21:49:28 +02:00
parent 15e71a1348
commit b3310cb905
4 changed files with 25 additions and 21 deletions

View File

@@ -64,6 +64,7 @@ func FindOrCreateUserFromEmail(email string) *User {
u = User{
Email: email,
Username: utils.DefaultUsername(),
Elo: 1500,
}
if err := EnsureUniqueUsernameAndSlug(&u); err != nil {
log.Println("Ensure unique:", err)