status -> statusCode
This commit is contained in:
@@ -32,7 +32,7 @@ export default defineEventHandler(async (event) => {
|
||||
|
||||
if (!current_r.ok)
|
||||
if (current_r.status == 404)
|
||||
throw createError({ status: 404, message: "User not found"})
|
||||
throw createError({ statusCode: 404, statusMessage: "User not found"})
|
||||
|
||||
|
||||
const current_body = await current_r.json();
|
||||
|
||||
Reference in New Issue
Block a user