fix webhooks
This commit is contained in:
@@ -196,11 +196,13 @@ export async function getReportByUrlHash(db: Database, values: GetReportByUrlHas
|
|||||||
urlHash: report.urlHash,
|
urlHash: report.urlHash,
|
||||||
reporter: {
|
reporter: {
|
||||||
id: reporter.id,
|
id: reporter.id,
|
||||||
username: reporter.username
|
username: reporter.username,
|
||||||
|
uuid: reporter.uuid
|
||||||
},
|
},
|
||||||
reported: {
|
reported: {
|
||||||
id: reported.id,
|
id: reported.id,
|
||||||
username: reported.username
|
username: reported.username,
|
||||||
|
uuid: reported.uuid
|
||||||
},
|
},
|
||||||
status: {
|
status: {
|
||||||
status: reportStatus.status,
|
status: reportStatus.status,
|
||||||
|
|||||||
@@ -96,7 +96,7 @@ export const PUT: APIRoute = async ({ request }) => {
|
|||||||
|
|
||||||
// send webhook in background
|
// send webhook in background
|
||||||
sendWebhook(WebhookAction.Strike, {
|
sendWebhook(WebhookAction.Strike, {
|
||||||
user: reported.uuid!
|
uuid: reported.uuid!
|
||||||
});
|
});
|
||||||
|
|
||||||
return new Response(null, { status: 200 });
|
return new Response(null, { status: 200 });
|
||||||
|
|||||||
Reference in New Issue
Block a user