status -> statusCode

This commit is contained in:
2026-01-20 17:40:49 +00:00
parent 9670293b51
commit 45448862c7
5 changed files with 7 additions and 7 deletions

View File

@@ -9,9 +9,9 @@ export default defineEventHandler(async (event) => {
const userId = session.secure?.user_id;
if (userId == undefined || userId == null)
throw createError({ status: 401 })
throw createError({ statusCode: 401 })
else if (body.song == undefined)
throw createError({ status: 400, message: "Song name required"})
throw createError({ statusCode: 400, statusMessage: "Song name required"})
const req = await fetch(config.fastapi_url + "/convert", {
method: "POST",