fix creation date not set if finished report is added via api
This commit is contained in:
@ -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
|
||||
});
|
||||
|
Reference in New Issue
Block a user