fix reported user not updating when changed
All checks were successful
delpoy / build-and-deploy (push) Successful in 45s

This commit is contained in:
bytedream 2024-12-28 00:51:36 +01:00
parent 3c8dc30e43
commit 6e7c2eafca

View File

@ -138,6 +138,7 @@ export const PATCH = (async ({ request, cookies }) => {
if (data.notice != null) report.notice = data.notice;
if (data.statement != null) report.statement = data.statement;
if (data.status != null) report.status = data.status;
if (data.reported != null && reported) report.reported_id = reported.id;
if (data.strike_reason != null)
report.strike_reason_id = data.strike_reason == -1 ? null : data.strike_reason;
if (data.strike_reason != null)