Fix logging when cleaning up megaphone files

This commit is contained in:
ayumi-signal
2025-12-09 10:31:59 -08:00
committed by GitHub
parent b449b6f4e7
commit 2bd254e70f

View File

@@ -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 ({