From be87fe6c43389fab07c2eb364b610f998fc6e0f2 Mon Sep 17 00:00:00 2001 From: Almeida Date: Tue, 23 Jan 2024 16:36:45 +0000 Subject: [PATCH 1/2] fix case note on timeout expiration for manual timeouts --- backend/src/plugins/ModActions/events/AuditLogEvents.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/plugins/ModActions/events/AuditLogEvents.ts b/backend/src/plugins/ModActions/events/AuditLogEvents.ts index a8a7f4ef8..347d594eb 100644 --- a/backend/src/plugins/ModActions/events/AuditLogEvents.ts +++ b/backend/src/plugins/ModActions/events/AuditLogEvents.ts @@ -42,7 +42,7 @@ export const AuditLogEvents = modActionsEvt({ caseId: existingCaseId, modId: auditLogEntry.executor?.id || "0", body: auditLogEntry.reason || "", - noteDetails: [`Timeout set to expire on `], + noteDetails: [`Timeout set to expire on `], }); } else { await casesPlugin.createCase({ From 681b19b69c5b5ff7c9d636bac7e1d8cd036aa413 Mon Sep 17 00:00:00 2001 From: Almeida Date: Tue, 23 Jan 2024 16:47:58 +0000 Subject: [PATCH 2/2] fmt --- backend/src/plugins/ModActions/events/AuditLogEvents.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/backend/src/plugins/ModActions/events/AuditLogEvents.ts b/backend/src/plugins/ModActions/events/AuditLogEvents.ts index 347d594eb..a66328b94 100644 --- a/backend/src/plugins/ModActions/events/AuditLogEvents.ts +++ b/backend/src/plugins/ModActions/events/AuditLogEvents.ts @@ -42,7 +42,9 @@ export const AuditLogEvents = modActionsEvt({ caseId: existingCaseId, modId: auditLogEntry.executor?.id || "0", body: auditLogEntry.reason || "", - noteDetails: [`Timeout set to expire on `], + noteDetails: [ + `Timeout set to expire on `, + ], }); } else { await casesPlugin.createCase({