From 06751f0e27be6605b727512b668830eea52c71bf Mon Sep 17 00:00:00 2001
From: bytedream <bytedream@protonmail.com>
Date: Sun, 1 Dec 2024 14:46:23 +0100
Subject: [PATCH] fix report api uuid param

---
 src/routes/api/report/+server.ts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/routes/api/report/+server.ts b/src/routes/api/report/+server.ts
index b63a91b..0e4295e 100644
--- a/src/routes/api/report/+server.ts
+++ b/src/routes/api/report/+server.ts
@@ -9,7 +9,7 @@ export const GET = (async ({ url }) => {
 	if (env.REPORT_SECRET && url.searchParams.get('secret') !== env.REPORT_SECRET)
 		return new Response(null, { status: 401 });
 
-	const user = await User.findOne({ where: { uuid: url.searchParams.get('user') ?? '' } });
+	const user = await User.findOne({ where: { uuid: url.searchParams.get('uuid') ?? '' } });
 	if (user === null) return new Response(null, { status: 400 });
 
 	const reports = {