From a27cf5f35b55e06c268c70e63fc536fdd7d66493 Mon Sep 17 00:00:00 2001 From: bytedream Date: Fri, 17 Oct 2025 18:50:35 +0200 Subject: [PATCH] fix webhooks --- src/db/schema/report.ts | 6 ++++-- src/pages/api/report.ts | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/db/schema/report.ts b/src/db/schema/report.ts index 15028c6..fc23c13 100644 --- a/src/db/schema/report.ts +++ b/src/db/schema/report.ts @@ -196,11 +196,13 @@ export async function getReportByUrlHash(db: Database, values: GetReportByUrlHas urlHash: report.urlHash, reporter: { id: reporter.id, - username: reporter.username + username: reporter.username, + uuid: reporter.uuid }, reported: { id: reported.id, - username: reported.username + username: reported.username, + uuid: reported.uuid }, status: { status: reportStatus.status, diff --git a/src/pages/api/report.ts b/src/pages/api/report.ts index d0c2538..6e948dc 100644 --- a/src/pages/api/report.ts +++ b/src/pages/api/report.ts @@ -96,7 +96,7 @@ export const PUT: APIRoute = async ({ request }) => { // send webhook in background sendWebhook(WebhookAction.Strike, { - user: reported.uuid! + uuid: reported.uuid! }); return new Response(null, { status: 200 });