Skip to content

Commit

Permalink
We have renamed uin token in OpenCRVS to MOSIP_PSUT_TOKEN_ID to confo…
Browse files Browse the repository at this point in the history
…rm to recent MOSIP docs
  • Loading branch information
euanmillar committed Mar 28, 2023
1 parent c4cd106 commit 70842a1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/api/src/features/receive/handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ async function asyncReceiveUINToken(payloadStr: string, openCRVSToken: string) {
openCRVSToken,
JSON.stringify({
BRN: birthRegNo,
UINTOKEN: uinToken
MOSIP_PSUT_TOKEN_ID: uinToken
})
)

Expand All @@ -69,7 +69,7 @@ async function asyncReceiveUINToken(payloadStr: string, openCRVSToken: string) {
}
const result = data
.replace(/\$\!CRVSID/g, birthRegNo)
.replace(/\$\!UINTOKEN/g, uinToken)
.replace(/\$\!MOSIP_PSUT_TOKEN_ID/g, uinToken)
fs.writeFile(`cards/${birthRegNo}.html`, result, 'utf8', err2 => {
if (err2) {
logger.error(`ID - ${birthRegNo}. Error Writing to file: ${err2.stack}`)
Expand Down

0 comments on commit 70842a1

Please sign in to comment.