fix reported user not updating when changed
All checks were successful
delpoy / build-and-deploy (push) Successful in 45s
All checks were successful
delpoy / build-and-deploy (push) Successful in 45s
This commit is contained in:
parent
3c8dc30e43
commit
6e7c2eafca
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user