status -> statusCode
This commit is contained in:
@@ -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 }))
|
||||
|
||||
Reference in New Issue
Block a user