fix: update notes handling in contact migration to preserve original contact info

This commit is contained in:
2025-12-03 20:46:27 +01:00
parent 60b79fa360
commit 02f31cb444

View File

@@ -99,7 +99,7 @@ try {
// If we couldn't extract structured data, use project name and put original text in notes // If we couldn't extract structured data, use project name and put original text in notes
if (!phone && !email) { if (!phone && !email) {
// No structured contact info found, put everything in notes // No structured contact info found, put everything in notes
notes = `Original contact info: ${contactText}`; notes = `${contactText}`;
name = project.project_name; name = project.project_name;
} else if (!name) { } else if (!name) {
// We have phone/email but no clear name // We have phone/email but no clear name
@@ -140,7 +140,7 @@ try {
name, name,
phone || null, phone || null,
email || null, email || null,
notes || `Migrated from project: ${project.project_name}` notes || `Przeniesiono z projektu: ${project.project_name}`
); );
contactId = result.lastInsertRowid; contactId = result.lastInsertRowid;
created++; created++;