diff --git a/apps/OpenSignServer/cloud/customRoute/v1/routes/createDocumentwithCoordinate.js b/apps/OpenSignServer/cloud/customRoute/v1/routes/createDocumentwithCoordinate.js index b3aadcc36..ba7d7b22d 100644 --- a/apps/OpenSignServer/cloud/customRoute/v1/routes/createDocumentwithCoordinate.js +++ b/apps/OpenSignServer/cloud/customRoute/v1/routes/createDocumentwithCoordinate.js @@ -165,13 +165,13 @@ export default async function createDocumentwithCoordinate(request, response) { 'Signers', contact?.map(x => x.contactPtr) ); - let updatePlaceholders = contact.map((signer) => { + let updatePlaceholders = contact.map(signer => { const placeHolder = []; for (const widget of signer.widgets) { const pageNumber = widget.page; const page = placeHolder.find(page => page.pageNumber === pageNumber); - const signOpt = { name: 'signature', status: required }; + const signOpt = { name: 'signature', status: 'required' }; const widgetData = { isStamp: widget.type === 'stamp', key: randomId(), diff --git a/apps/OpenSignServer/cloud/customRoute/v1/routes/createTemplatewithCoordinate.js b/apps/OpenSignServer/cloud/customRoute/v1/routes/createTemplatewithCoordinate.js index 0cf5b1727..b2a4d2aef 100644 --- a/apps/OpenSignServer/cloud/customRoute/v1/routes/createTemplatewithCoordinate.js +++ b/apps/OpenSignServer/cloud/customRoute/v1/routes/createTemplatewithCoordinate.js @@ -129,7 +129,7 @@ export default async function createTemplatewithCoordinate(request, response) { for (const widget of signer.widgets) { const pageNumber = widget.page; const page = placeHolder.find(page => page.pageNumber === pageNumber); - const signOpt = { name: 'signature', status: required }; + const signOpt = { name: 'signature', status: 'required' }; const widgetData = { isStamp: widget.type === 'stamp', key: randomId(),