fix creation date not set if finished report is added via api
All checks were successful
deploy / build-and-deploy (/testvaro, /opt/website-test, website-test) (push) Successful in 15s
deploy / build-and-deploy (/varo, /opt/website, website) (push) Successful in 14s

This commit is contained in:
2025-06-24 17:24:24 +02:00
parent 9041578252
commit a06cc34085

View File

@ -76,6 +76,7 @@ export const PUT: APIRoute = async ({ request }) => {
const report = await tx.addReport({ const report = await tx.addReport({
reporterTeamId: reporterTeam?.team.id, reporterTeamId: reporterTeam?.team.id,
reportedTeamId: reportedTeam.team.id, reportedTeamId: reportedTeam.team.id,
createdAt: new Date(),
reason: parsed.reason, reason: parsed.reason,
body: parsed.body body: parsed.body
}); });