From 70842a1910181b1294ce9872e3ac65a49c493771 Mon Sep 17 00:00:00 2001 From: euanmillar Date: Tue, 28 Mar 2023 16:45:52 +0100 Subject: [PATCH] We have renamed uin token in OpenCRVS to MOSIP_PSUT_TOKEN_ID to conform to recent MOSIP docs --- packages/api/src/features/receive/handler.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/api/src/features/receive/handler.ts b/packages/api/src/features/receive/handler.ts index 9601735..a4592f0 100644 --- a/packages/api/src/features/receive/handler.ts +++ b/packages/api/src/features/receive/handler.ts @@ -58,7 +58,7 @@ async function asyncReceiveUINToken(payloadStr: string, openCRVSToken: string) { openCRVSToken, JSON.stringify({ BRN: birthRegNo, - UINTOKEN: uinToken + MOSIP_PSUT_TOKEN_ID: uinToken }) ) @@ -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}`)