add name to contact info
This commit is contained in:
@ -58,7 +58,7 @@ export class WebDriverUtils {
|
||||
|
||||
export function saveContactInfoToCSV(city: string, contactInfo: ContactInfo, filePath: string): void {
|
||||
const headers = 'City,Website URL,Email\n';
|
||||
const line = `"${city},"${contactInfo.websiteUrl}","${contactInfo.email}"\n`;
|
||||
const line = `"${city}","${contactInfo.name}","${contactInfo.websiteUrl}","${contactInfo.email}"\n`;
|
||||
|
||||
if (!existsSync(filePath)) {
|
||||
writeFileSync(filePath, headers + line);
|
||||
|
||||
Reference in New Issue
Block a user