From f83da9c36f4e2c9fe8ab571b6363725de00de496 Mon Sep 17 00:00:00 2001 From: oatmealine Date: Sat, 25 Jan 2020 16:33:23 +0300 Subject: [PATCH] fix auto detection --- src/uploadGJLevel21.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/uploadGJLevel21.ts b/src/uploadGJLevel21.ts index 83731e6..58e5aa2 100644 --- a/src/uploadGJLevel21.ts +++ b/src/uploadGJLevel21.ts @@ -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),