From 2bd254e70f5e2405d53011f05df2a114116e85c7 Mon Sep 17 00:00:00 2001 From: ayumi-signal <143036029+ayumi-signal@users.noreply.github.com> Date: Tue, 9 Dec 2025 10:31:59 -0800 Subject: [PATCH] Fix logging when cleaning up megaphone files --- app/attachments.node.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/attachments.node.ts b/app/attachments.node.ts index b8795910e1..2be51fd998 100644 --- a/app/attachments.node.ts +++ b/app/attachments.node.ts @@ -267,7 +267,9 @@ export const deleteAllMegaphones = async ({ } } - log.error(`deleteAllMegaphones: deleted ${filesDeleted} files`); + if (filesDeleted > 0) { + log.error(`deleteAllMegaphones: deleted ${filesDeleted} files`); + } }; export const deleteAllDraftAttachments = async ({