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, id: +body.id,
}, },
update: { update: {
email: body.email, email: body.email.toString(),
name: body.name, name: body.name.toString(),
}, },
create: { create: {
documentId: +documentId, documentId: +documentId,
email: body.email, email: body.email.toString(),
name: body.name, name: body.name.toString(),
token: short.generate().toString(), token: short.generate().toString(),
}, },
}); });