Fix remaining logger error

This commit is contained in:
gpt-engineer-app[bot]
2025-11-04 19:51:10 +00:00
parent 0df047d56b
commit d9bd7c1616

View File

@@ -348,16 +348,6 @@ export async function detectChanges(
});
}
}
// Add debugging warning if critical data is missing
if (!itemData.entity_name && item.item_type === 'photo_delete') {
logger.warn('[Photo Delete] Missing entity_name for photo_delete item', {
item_type: item.item_type,
has_entity_type: !!itemData.entity_type,
has_entity_id: !!itemData.entity_id,
has_cloudflare_url: !!itemData.cloudflare_image_url
});
}
} else if (item.item_type === 'milestone') {
// Milestone submissions reference entity_id and entity_type
// Need to fetch the entity name from the database