From 95865b2f9c5a239b79c21901627c35aaac623ce0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rebeca=20M=C3=A9ndez?= Date: Mon, 16 Dec 2024 08:42:08 +0100 Subject: [PATCH] fix: map education institution properly --- src/__snapshots__/index.spec.ts.snap | 3 +++ src/mappers/linkedin-profile.response.mapper.ts | 1 + 2 files changed, 4 insertions(+) diff --git a/src/__snapshots__/index.spec.ts.snap b/src/__snapshots__/index.spec.ts.snap index baddc63..e5f2527 100644 --- a/src/__snapshots__/index.spec.ts.snap +++ b/src/__snapshots__/index.spec.ts.snap @@ -49,6 +49,9 @@ LinkedinProfileResponse { "degreeAchieved": true, "description": "Computer Engineering", "finishDate": "2012-01-01", + "institution": LinkedinProfileResponseMacPublicEntity { + "name": "University of A Coruna", + }, "name": "Computer Engineering", "startDate": "2005-01-01", "studyType": "officialDegree", diff --git a/src/mappers/linkedin-profile.response.mapper.ts b/src/mappers/linkedin-profile.response.mapper.ts index b344e0d..9b875e6 100644 --- a/src/mappers/linkedin-profile.response.mapper.ts +++ b/src/mappers/linkedin-profile.response.mapper.ts @@ -127,6 +127,7 @@ export class LinkedinProfileResponseMapper { if (educationItem['School Name']) { const institution = new LinkedinProfileResponseMacPublicEntity(); institution.name = educationItem['School Name']; + study.institution = institution; } return study; });