Skip to content

Commit c2f6458

Browse files
committed
Fix formatting and correct employeeNumber access in IdentitiesUpsertController
1 parent c01e4a3 commit c2f6458

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/management/identities/identities-upsert.controller.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ export class IdentitiesUpsertController extends AbstractController {
9393
const [code, data] = await this._service.upsertWithFingerprint<Identities>(filters, body, {
9494
errorOnNotFound: /true|on|yes|1/i.test(errorOnNotFound),
9595
upsert: /true|on|yes|1/i.test(upsert),
96-
}, {force});
96+
}, { force });
9797

9898
// If the state is TO_COMPLETE, the identity is created but additional fields are missing or invalid
9999
// Else the state is TO_VALIDATE, we return a 201 status code
@@ -125,7 +125,7 @@ export class IdentitiesUpsertController extends AbstractController {
125125
const filter = {
126126
namespace: 'identities',
127127
path: join(
128-
[identity.inetOrgPerson?.employeeType, identity.inetOrgPerson?.employeeNumber, 'jpegPhoto.jpg'].join('/'),
128+
[identity.inetOrgPerson?.employeeType, identity.inetOrgPerson?.employeeNumber[0], 'jpegPhoto.jpg'].join('/'),
129129
),
130130
};
131131

0 commit comments

Comments
 (0)