Fix console statement violations

This commit is contained in:
gpt-engineer-app[bot]
2025-11-03 18:30:07 +00:00
parent e9b9faa3e1
commit 7eb0b77d76
10 changed files with 31 additions and 27 deletions

View File

@@ -349,7 +349,7 @@ export async function detectChanges(
if (data?.name) entityName = `${data.name} (${formatEntityType(entityType)})`;
}
} catch (err) {
console.error('Error fetching entity name for photo operation:', err);
logger.error('Error fetching entity name for photo operation', { error: err, entityType: itemData.entity_type, entityId: itemData.entity_id });
}
}
@@ -395,7 +395,7 @@ export async function detectChanges(
entityName = `${formatEntityType(entityType)} - ${itemData.title}`;
}
} catch (err) {
console.error('Error fetching entity name for milestone:', err);
logger.error('Error fetching entity name for milestone', { error: err, entityType: itemData.entity_type, entityId: itemData.entity_id });
// Fall back to just the title if database lookup fails
if (itemData.title) {
entityName = itemData.title;
@@ -434,7 +434,7 @@ export async function detectChanges(
}
}
} catch (err) {
console.error('Error resolving entity name for field display:', err);
logger.error('Error resolving entity name for field display', { error: err, entityType: itemData.entity_type, entityId: itemData.entity_id });
}
// Add entity name as an explicit field change at the beginning