diff --git a/src/routes/api/user/+server.ts b/src/routes/api/user/+server.ts index 7e30cf8..dbaa84f 100644 --- a/src/routes/api/user/+server.ts +++ b/src/routes/api/user/+server.ts @@ -11,7 +11,7 @@ export const GET = (async ({ url }) => { if (uuid == null) return new Response(null, { status: 400 }); const user = await User.findOne({ where: { uuid: uuid } }); - if (user == null) return new Response(null, { status: 400 }); + if (user == null) return new Response(null, { status: 404 }); const query = (await Report.findOne({ where: { reported_id: user.id },