From a06cc34085038638bc4abb4d4e24ef583615eb66 Mon Sep 17 00:00:00 2001 From: bytedream Date: Tue, 24 Jun 2025 17:24:24 +0200 Subject: [PATCH] fix creation date not set if finished report is added via api --- src/pages/api/report/index.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/pages/api/report/index.ts b/src/pages/api/report/index.ts index dc41bee..ff0fc7b 100644 --- a/src/pages/api/report/index.ts +++ b/src/pages/api/report/index.ts @@ -76,6 +76,7 @@ export const PUT: APIRoute = async ({ request }) => { const report = await tx.addReport({ reporterTeamId: reporterTeam?.team.id, reportedTeamId: reportedTeam.team.id, + createdAt: new Date(), reason: parsed.reason, body: parsed.body });