Skip to content

Commit

Permalink
fix: send MOSIP_AID similarly as other identifiers
Browse files Browse the repository at this point in the history
  • Loading branch information
naftis committed Feb 27, 2024
1 parent 48dcada commit ac2f8e6
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion packages/api/src/features/webhooks/handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,17 @@ export async function webhooksHandler(
break
}
}
entry.resource.identifier.push({ type: 'MOSIP_AID', value: mosipAid })
entry.resource.identifier.push({
type: {
coding: [
{
system: 'http://opencrvs.org/specs/identifier-type',
code: 'MOSIP_AID'
}
]
},
value: mosipAid
})
isAIDSet = true
}
if (payId && isAIDSet) {
Expand Down

0 comments on commit ac2f8e6

Please sign in to comment.