Skip to content

Commit abb5b07

Browse files
committed
fix: #412 add skill and unmatch skills for role
1 parent cdbac5e commit abb5b07

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/services/TeamService.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -741,6 +741,8 @@ async function roleSearchRequest (currentUser, data) {
741741
if (!_.isUndefined(data.roleId)) {
742742
role = await Role.findById(data.roleId)
743743
role = role.toJSON()
744+
role.matchedSkills = role.listOfSkills
745+
role.unMatchedSkills = []
744746
role.skillsMatch = 1
745747
// if skills is provided then use skills to find role
746748
} else if (!_.isUndefined(data.skills)) {

0 commit comments

Comments
 (0)