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