Fix - Integration JSON Resume Empty Date

This commit is contained in:
Aadhar Chandiwala
2022-03-16 13:32:59 +05:30
parent ab90a2e1dd
commit 110797da9d

View File

@ -338,8 +338,8 @@ export class IntegrationsService {
summary: get(item, 'summary'), summary: get(item, 'summary'),
url: get(item, 'url'), url: get(item, 'url'),
date: { date: {
start: dayjs(get(item, 'startDate')).toISOString(), start: this.parseDate(get(item, 'startDate')),
end: dayjs(get(item, 'endDate')).toISOString(), end: this.parseDate(get(item, 'endDate')),
}, },
} as WorkExperience, } as WorkExperience,
], ],
@ -367,8 +367,8 @@ export class IntegrationsService {
summary: get(item, 'summary'), summary: get(item, 'summary'),
url: get(item, 'url'), url: get(item, 'url'),
date: { date: {
start: dayjs(get(item, 'startDate')).toISOString(), start: this.parseDate(get(item, 'startDate')),
end: dayjs(get(item, 'endDate')).toISOString(), end: this.parseDate(get(item, 'endDate')),
}, },
} as Volunteer, } as Volunteer,
], ],
@ -398,8 +398,8 @@ export class IntegrationsService {
url: get(item, 'url'), url: get(item, 'url'),
courses: get(item, 'courses', []), courses: get(item, 'courses', []),
date: { date: {
start: dayjs(get(item, 'startDate')).toISOString(), start: this.parseDate(get(item, 'startDate')),
end: dayjs(get(item, 'endDate')).toISOString(), end: this.parseDate(get(item, 'endDate')),
}, },
} as Education, } as Education,
], ],
@ -426,7 +426,7 @@ export class IntegrationsService {
awarder: get(award, 'awarder'), awarder: get(award, 'awarder'),
summary: get(award, 'summary'), summary: get(award, 'summary'),
url: get(award, 'url'), url: get(award, 'url'),
date: dayjs(get(award, 'date')).toISOString(), date: this.parseDate(get(award, 'date')),
} as Award, } as Award,
], ],
}, },
@ -452,7 +452,7 @@ export class IntegrationsService {
publisher: get(publication, 'publisher'), publisher: get(publication, 'publisher'),
summary: get(publication, 'summary'), summary: get(publication, 'summary'),
url: get(publication, 'url'), url: get(publication, 'url'),
date: dayjs(get(publication, 'releaseDate')).toISOString(), date: this.parseDate(get(publication, 'releaseDate')),
} as Publication, } as Publication,
], ],
}, },
@ -575,8 +575,8 @@ export class IntegrationsService {
keywords: get(project, 'keywords'), keywords: get(project, 'keywords'),
url: get(project, 'url'), url: get(project, 'url'),
date: { date: {
start: dayjs(get(project, 'startDate')).toISOString(), start: this.parseDate(get(project, 'startDate')),
end: dayjs(get(project, 'endDate')).toISOString(), end: this.parseDate(get(project, 'endDate')),
}, },
} as Project, } as Project,
], ],