feat: Filter category tree based on ROOT_CATEGORY_ID for display while keeping the full tree for image sync, and summarize image deletion logs.

This commit is contained in:
sebseb7
2025-11-23 09:23:37 +01:00
parent a80acfe6d7
commit 6ea9abab81
3 changed files with 10 additions and 6 deletions

View File

@@ -38,7 +38,9 @@ class PictureSyncer {
for (const id of toDelete) {
const filePath = path.join(groupDir, `${id}.jpg`);
await fs.unlink(filePath);
console.log(`🗑️ Deleted obsolete image: ${filePath}`);
}
if (toDelete.length > 0) {
console.log(`🗑️ Deleted ${toDelete.length} obsolete images.`);
}
// 2. Download missing images