Skip to content

Commit

Permalink
Yarn prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
gubbih committed Jan 22, 2024
1 parent 2e0ce95 commit 69744e9
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/routes/users.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down Expand Up @@ -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);
}),
);
Expand Down

0 comments on commit 69744e9

Please sign in to comment.