fix: show correct ipv4 address on completion certificate

This commit is contained in:
prafull-opensignlabs
2024-05-03 17:14:26 +05:30
parent 53bd13e03b
commit c56830b7be
3 changed files with 6 additions and 7 deletions
@@ -23,6 +23,7 @@ export default async function GenerateCertificate(docDetails) {
const generateAt = new Date();
const generatedUTCTime = generateAt.toUTCString();
const generatedOn = 'Generated On ' + generatedUTCTime;
const OriginIp = docDetails?.OriginIp || '';
const company = docDetails?.ExtUserPtr?.Company || '';
const auditTrail =
docDetails.AuditTrail?.length > 1
@@ -229,7 +230,7 @@ export default async function GenerateCertificate(docDetails) {
font: timesRomanFont,
color: textKeyColor,
});
page.drawText(`152.58.21.622`, {
page.drawText(`${OriginIp}`, {
x: 130,
y: 505,
size: text,