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

@@ -7,7 +7,7 @@ export default defineEventHandler(async (event) => {
// @ts-ignore
const userId = session.secure?.user_id;
if (userId == undefined || userId == null)
throw createError({ status: 401 })
throw createError({ statusCode: 401 })
const r = await fetch(config.fastapi_url + "/me" + '?' +
new URLSearchParams({ id: userId }))