clean and check username and passw better, handle parseForm errors

This commit is contained in:
2026-02-08 21:56:47 -08:00
parent 32ccdcd5f3
commit 4d77999edb
3 changed files with 54 additions and 17 deletions

View File

@@ -207,6 +207,8 @@ func JsonToDB(jsonFile string, userId int) error {
continue
}
// TODO: replace strings.Join with pgx copy
_, err = conn.Exec(
context.Background(),
`INSERT INTO history (user_id, timestamp, song_name, artist, album_name, ms_played, platform) VALUES `+