diff --git a/application/aam-backend-service/src/main/kotlin/com/aamdigital/aambackendservice/skill/controller/SkillController.kt b/application/aam-backend-service/src/main/kotlin/com/aamdigital/aambackendservice/skill/controller/SkillController.kt index d2b97f6..3588077 100644 --- a/application/aam-backend-service/src/main/kotlin/com/aamdigital/aambackendservice/skill/controller/SkillController.kt +++ b/application/aam-backend-service/src/main/kotlin/com/aamdigital/aambackendservice/skill/controller/SkillController.kt @@ -30,9 +30,9 @@ class SkillController( @GetMapping("/user-profile") fun fetchUserProfiles( - fullName: String?, - email: String?, - phone: String?, + fullName: String = "", + email: String = "", + phone: String = "", ): ResponseEntity { val result = searchUserProfileUseCase.run( request = SearchUserProfileRequest( @@ -93,7 +93,7 @@ class SkillController( skills = entity.skills.map { EscoSkill( usage = SkillUsage.valueOf(it.usage.uppercase()), - escoUri = it.externalIdentifier + escoUri = it.escoUri ) }, updatedAtExternalSystem = entity.updatedAt, diff --git a/application/aam-backend-service/src/main/kotlin/com/aamdigital/aambackendservice/skill/core/SqlSearchUserProfileUseCase.kt b/application/aam-backend-service/src/main/kotlin/com/aamdigital/aambackendservice/skill/core/SqlSearchUserProfileUseCase.kt index 5335645..a13ede9 100644 --- a/application/aam-backend-service/src/main/kotlin/com/aamdigital/aambackendservice/skill/core/SqlSearchUserProfileUseCase.kt +++ b/application/aam-backend-service/src/main/kotlin/com/aamdigital/aambackendservice/skill/core/SqlSearchUserProfileUseCase.kt @@ -63,7 +63,7 @@ class SqlSearchUserProfileUseCase( skills = it.skills.map { skill -> EscoSkill( usage = SkillUsage.valueOf(skill.usage.uppercase()), - escoUri = skill.externalIdentifier + escoUri = skill.escoUri ) }, latestSyncAt = it.latestSyncAt?.toInstant(), diff --git a/application/aam-backend-service/src/main/kotlin/com/aamdigital/aambackendservice/skill/skilllab/SkillLabSyncUserProfileUseCase.kt b/application/aam-backend-service/src/main/kotlin/com/aamdigital/aambackendservice/skill/skilllab/SkillLabSyncUserProfileUseCase.kt index 86089db..4d136f8 100644 --- a/application/aam-backend-service/src/main/kotlin/com/aamdigital/aambackendservice/skill/skilllab/SkillLabSyncUserProfileUseCase.kt +++ b/application/aam-backend-service/src/main/kotlin/com/aamdigital/aambackendservice/skill/skilllab/SkillLabSyncUserProfileUseCase.kt @@ -49,7 +49,7 @@ class SkillLabSyncUserProfileUseCase( skills = allSkillsEntities.map { skill -> EscoSkill( usage = SkillUsage.valueOf(skill.usage.uppercase()), - escoUri = skill.externalIdentifier + escoUri = skill.escoUri ) }, updatedAtExternalSystem = userProfileEntity.updatedAt,