Skip to content

The Open Source DocuSign Alternative.

build fix

Timur Ercan99193bc7be2d
diff --git a/apps/web/pages/api/documents/[id]/recipients/index.ts b/apps/web/pages/api/documents/[id]/recipients/index.ts
index 5fa441367..9f60747cf 100644
--- a/apps/web/pages/api/documents/[id]/recipients/index.ts
+++ b/apps/web/pages/api/documents/[id]/recipients/index.ts
@@ -33,13 +33,13 @@ async function postHandler(req: NextApiRequest, res: NextApiResponse) {
id: +body.id,
},
update: {
- email: body.email,
- name: body.name,
+ email: body.email.toString(),
+ name: body.name.toString(),
},
create: {
documentId: +documentId,
- email: body.email,
- name: body.name,
+ email: body.email.toString(),
+ name: body.name.toString(),
token: short.generate().toString(),
},
});