build fix

This commit is contained in:
Timur Ercan
2023-02-03 20:03:38 +01:00
parent a4565eb5ae
commit 99193bc7be

View File

@ -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(),
},
});