Update Drafting.ts

This commit is contained in:
mc 2024-01-31 00:32:47 +01:00 committed by GitHub
parent 3ca15c2170
commit 47f0eaa6a6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -31,7 +31,7 @@ App.post("/create",
VocalsDifficulty: j.number().required().min(0).max(6)
})),
async (req, res) => {
if (req.user!.CreatedTracks.length > Number(MAX_AMOUNT_OF_DRAFTS_AT_ONCE))
if (req.user!.CreatedTracks.length >= Number(MAX_AMOUNT_OF_DRAFTS_AT_ONCE))
return res.status(400).send("You ran out of free draft spots. Please delete some first.");
const SongData = await Song.create({