Skip to content

Commit

Permalink
Merge pull request #506 from OpenSignLabs/api_signembed
Browse files Browse the repository at this point in the history
fix: handle uncaught error in createdocument and createmplate API
  • Loading branch information
prafull-opensignlabs authored Mar 19, 2024
2 parents 62f66bf + 1ff4160 commit e643d96
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down

0 comments on commit e643d96

Please sign in to comment.