mirror of
https://github.com/riwiwa/muzi.git
synced 2026-02-28 11:56:57 -08:00
clean and check username and passw better, handle parseForm errors
This commit is contained in:
@@ -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 `+
|
||||
|
||||
Reference in New Issue
Block a user