Skip to content

Commit

Permalink
Fix profile
Browse files Browse the repository at this point in the history
  • Loading branch information
williambelle committed Feb 26, 2025
1 parent ab9f34b commit 3b46d75
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/services/apimd.service.js
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ async function getCosecDetails (sciperList, unitId, lang) {
response.data.persons.forEach((person) => {
const p = {
sciper: person.id,
profile: ldapUtils.getProfile(person.profile, person.id),
profile: ldapUtils.getProfile(person.email, person.id),
email: person.email ? person.email : '',
name: person.lastnameusual ? person.lastnameusual : person.lastname,
firstname: person.firstnameusual
Expand Down
2 changes: 1 addition & 1 deletion tests/resources/unit/unit-mandalore-fr-internal.json
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@
"name": "Djarin",
"officeList": ["Sundari 231", "Bounty Hunter Lane"],
"phoneList": ["+41210054321", "+41210054324"],
"profile": "670003",
"profile": "din.djarin",
"sciper": "670003",
"role": "Correspondant de sécurité (COSEC)"
}
Expand Down

0 comments on commit 3b46d75

Please sign in to comment.