Skip to content

Commit

Permalink
Merge pull request #1102 from vishwajeet-eGov/2.0.0-generic
Browse files Browse the repository at this point in the history
fn and gn values in separate fields
  • Loading branch information
egov-joy authored May 24, 2022
2 parents 021ed57 + 97bd0bd commit 7721903
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,8 @@ async function certificateAsEUPayload(req, res) {
let certificateData = certificateService.prepareDataForVaccineCertificateTemplate(certificateRaw, dataURL, doseToVaccinationDetailsMap);
// Overriding the name to as passed in request body
certificateData["name"] = [requestBody.fn, requestBody.gn].join(" ").trim();
certificateData["fn"] = requestBody.fn;
certificateData["gn"] = requestBody.gn;
const htmlData = await configurationService.getCertificateTemplate(TEMPLATES.EU_VACCINATION_CERTIFICATE);
try {
buffer = await createPDF(htmlData, certificateData);
Expand Down

0 comments on commit 7721903

Please sign in to comment.