v0.7.1 client readline removed for cross-platform compatibility with wasm, client logic fix fixes and refactor

This commit is contained in:
2025-11-13 14:37:44 -05:00
parent 9745955e00
commit 35804d4b9a
19 changed files with 308 additions and 271 deletions
+1 -1
View File
@@ -93,7 +93,7 @@ func (s *Store) QueryGames(gameID, playerID string) ([]GameRecord, error) {
start_time_utc
FROM games WHERE 1=1`
var args []interface{}
var args []any
// Handle gameID filtering
if gameID != "" && gameID != "*" {
+1 -1
View File
@@ -45,7 +45,7 @@ func (s *Store) CreateUser(record UserRecord) error {
func (s *Store) userExists(tx *sql.Tx, username, email string) (bool, error) {
var count int
query := `SELECT COUNT(*) FROM users WHERE username = ? COLLATE NOCASE`
args := []interface{}{username}
args := []any{username}
if email != "" {
query = `SELECT COUNT(*) FROM users WHERE username = ? COLLATE NOCASE OR email = ? COLLATE NOCASE`