Skip to content

The Open Source DocuSign Alternative.

fix: type errors

Mythiea1cb595f253b
diff --git a/apps/marketing/src/pages/api/stripe/webhook/index.ts b/apps/marketing/src/pages/api/stripe/webhook/index.ts
index 5db47c89a..a0a4ccebb 100644
--- a/apps/marketing/src/pages/api/stripe/webhook/index.ts
+++ b/apps/marketing/src/pages/api/stripe/webhook/index.ts
@@ -124,16 +124,16 @@ export default async function handler(req: NextApiRequest, res: NextApiResponse)
document.document = await insertImageInPDF(
document.document,
signatureDataUrl,
- field.positionX,
- field.positionY,
+ Number(field.positionX),
+ Number(field.positionY),
field.page,
);
} else {
document.document = await insertTextInPDF(
document.document,
signatureText ?? '',
- field.positionX,
- field.positionY,
+ Number(field.positionX),
+ Number(field.positionY),
field.page,
);
}