We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents fbacd80 + 3c2e2cb commit 8e8541fCopy full SHA for 8e8541f
src/services/TeamService.js
@@ -771,8 +771,11 @@ async function roleSearchRequest (currentUser, data) {
771
// if only job description is provided, collect skill names from description
772
const tags = await getSkillsByJobDescription({ description: data.jobDescription })
773
const skills = _.map(tags, 'tag')
774
- // find the best matching role
775
- role = await getRoleBySkills(skills)
+
+ // add skills to roleSearchRequest and get best matching role
776
+ const [skillIds, roleList] = await Promise.all([getSkillIdsByNames(skills), getRoleBySkills(skills)])
777
+ data.skills = skillIds
778
+ role = roleList
779
}
780
data.roleId = role.id
781
// create roleSearchRequest entity with found roleId
0 commit comments