Solved a bug related to the creation of users

This commit is contained in:
Tiago Ribeiro
2024-09-02 11:59:12 +01:00
parent abcb1afd48
commit 4e3c947d2a

View File

@@ -88,7 +88,7 @@ async function post(req: NextApiRequest, res: NextApiResponse) {
userId,
email: email.toLowerCase(),
name: req.body.name,
passport_id,
...(!!passport_id ? {passport_id} : {}),
});
if (type === "corporate") {