From 69744e9e4a32b1516a44ae2f01f93704fa526ee7 Mon Sep 17 00:00:00 2001 From: Thor Lund Hansen Date: Mon, 22 Jan 2024 22:42:26 +0100 Subject: [PATCH] Yarn prettier --- src/routes/users.ts | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/routes/users.ts b/src/routes/users.ts index 73bf720..dbdc9a4 100644 --- a/src/routes/users.ts +++ b/src/routes/users.ts @@ -65,10 +65,7 @@ router.post( celebrate({ [Segments.BODY]: Joi.object().keys({ email: Joi.string().required().email(), - password: Joi.string() - .required() - .min(8) - .max(64), + password: Joi.string().required().min(8).max(64), }), }), asyncHandler(async (req: Request, res: Response) => { @@ -147,9 +144,9 @@ router.put( email: req.body.email || user.email, orgId: [parseInt(req.params.orgId)], }; - + const newUserInfo = await updateUser(updatedUser); - console.log("updatedUser"); + console.log('updatedUser'); res.json(newUserInfo); }), );