add report draft editing warn popup
All checks were successful
deploy / build-and-deploy (push) Successful in 30s
All checks were successful
deploy / build-and-deploy (push) Successful in 30s
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user