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 26, 2024
1 parent 48dcada commit 8ecb884
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 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 Expand Up @@ -107,6 +117,8 @@ export async function webhooksHandler(
}

async function proxyCallback(id: string, payload: string, sendingUrl: string) {
console.log(payload)
return
let proxyRequest: string
try {
const encryptionResponse = encryptAndSign(payload)
Expand Down

0 comments on commit 8ecb884

Please sign in to comment.