Skip to content

Commit 7e685d1

Browse files
authored
Merge pull request #317 from UN-OCHA/sub-property-bug
πŸ› Pick correct sub property
2 parents 6b65dfa + 03aedec commit 7e685d1

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

β€Žpackage.jsonβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@unocha/hpc-api-core",
3-
"version": "15.1.0",
3+
"version": "15.1.1",
44
"description": "Core libraries supporting HPC.Tools API Backend",
55
"license": "Apache-2.0",
66
"private": false,

β€Žsrc/auth/index.tsβ€Ž

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -151,10 +151,8 @@ export const getLoggedInParticipant = async (
151151
});
152152

153153
if (participant) {
154-
const otherSubProperty = isEntraIDToken ? 'hidSub' : 'entraId';
155-
156154
await models.participant.update({
157-
values: { [otherSubProperty]: sub },
155+
values: { [subProperty]: sub },
158156
where: { id: participant.id },
159157
});
160158
}

0 commit comments

Comments
Β (0)