fix auto detection

This commit is contained in:
oatmealine 2020-01-25 16:33:23 +03:00
parent 49a349d237
commit f83da9c36f
No known key found for this signature in database
GPG Key ID: C4CB49CFAD721145
1 changed files with 1 additions and 1 deletions

View File

@ -27,7 +27,7 @@ module.exports = (app, db): void => {
// audio_track is official songs and song_id is newgrounds aka custom songs
'audio_track': Number(req.body.audioTrack),
'song_id': Number(req.body.songID),
'auto': false,
'auto': Boolean(Number(req.body.auto || 0)),
'password': Number(req.body.password || 0),
'original': Boolean(req.body.original || 0),
'two_player': Boolean(req.body.twoPlayer || 0),