add report draft editing warn popup
All checks were successful
deploy / build-and-deploy (push) Successful in 30s

This commit is contained in:
2026-01-03 19:46:55 +01:00
parent 1af59b31a1
commit 04185c1c11
3 changed files with 13 additions and 4 deletions

View File

@@ -197,12 +197,13 @@ export const report = {
if (input.status === 'closed') preReportStrike = await db.getStrikeByReportId({ reportId: input.reportId });
await db.transaction(async (tx) => {
if (reportCreatedAt) await tx.editReport({ id: input.reportId, createdAt: reportCreatedAt });
await tx.editReportStatus(input);
if (input.strikeReasonId) {
await db.editStrike({
reportId: input.reportId,
at: reportCreatedAt,
strikeReasonId: input.strikeReasonId
});
} else {