Fix- Integration LinkedIn Empty Date

This commit is contained in:
Aadhar Chandiwala
2022-03-16 13:36:21 +05:30
parent 110797da9d
commit 72d3d46e88

View File

@ -105,8 +105,8 @@ export class IntegrationsService {
institution: get(school, 'School Name'), institution: get(school, 'School Name'),
degree: get(school, 'Degree Name'), degree: get(school, 'Degree Name'),
date: { date: {
start: dayjs(get(school, 'Start Date')).toISOString(), start: this.parseDate(get(school, 'Start Date')),
end: dayjs(get(school, 'End Date')).toISOString(), end: this.parseDate(get(school, 'End Date')),
}, },
} as Education, } as Education,
], ],
@ -134,8 +134,8 @@ export class IntegrationsService {
position: get(position, 'Title'), position: get(position, 'Title'),
summary: get(position, 'Description'), summary: get(position, 'Description'),
date: { date: {
start: dayjs(get(position, 'Started On')).toISOString(), start: this.parseDate(get(position, 'Started On')),
end: dayjs(get(position, 'Finished On')).toISOString(), end: this.parseDate(get(position, 'Finished On')),
}, },
} as WorkExperience, } as WorkExperience,
], ],
@ -162,7 +162,7 @@ export class IntegrationsService {
name: get(certification, 'Name'), name: get(certification, 'Name'),
issuer: get(certification, 'Authority'), issuer: get(certification, 'Authority'),
url: get(certification, 'Url'), url: get(certification, 'Url'),
date: dayjs(get(certification, 'Started On')).toISOString(), date: this.parseDate(get(certification, 'Started On')),
} as Certificate, } as Certificate,
], ],
}, },
@ -214,8 +214,8 @@ export class IntegrationsService {
description: get(project, 'Description'), description: get(project, 'Description'),
url: get(project, 'Url'), url: get(project, 'Url'),
date: { date: {
start: dayjs(get(project, 'Started On')).toISOString(), start: this.parseDate(get(project, 'Started On')),
end: dayjs(get(project, 'Finished On')).toISOString(), end: this.parseDate(get(project, 'Finished On')),
}, },
} as Project, } as Project,
], ],