mirror of
https://github.com/documenso/documenso.git
synced 2026-07-25 01:15:49 +10:00
fix: type errors
This commit is contained in:
@@ -124,16 +124,16 @@ export default async function handler(req: NextApiRequest, res: NextApiResponse)
|
|||||||
document.document = await insertImageInPDF(
|
document.document = await insertImageInPDF(
|
||||||
document.document,
|
document.document,
|
||||||
signatureDataUrl,
|
signatureDataUrl,
|
||||||
field.positionX,
|
Number(field.positionX),
|
||||||
field.positionY,
|
Number(field.positionY),
|
||||||
field.page,
|
field.page,
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
document.document = await insertTextInPDF(
|
document.document = await insertTextInPDF(
|
||||||
document.document,
|
document.document,
|
||||||
signatureText ?? '',
|
signatureText ?? '',
|
||||||
field.positionX,
|
Number(field.positionX),
|
||||||
field.positionY,
|
Number(field.positionY),
|
||||||
field.page,
|
field.page,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user