From 1edcd2752a8ce8af298fdf1febcda5a423982e71 Mon Sep 17 00:00:00 2001 From: Madeline <46743919+MaddyUnderStars@users.noreply.github.com> Date: Thu, 27 Oct 2022 23:12:48 +1100 Subject: fix bad user validation --- src/api/routes/users/@me/index.ts | 1 + 1 file changed, 1 insertion(+) (limited to 'src/api') diff --git a/src/api/routes/users/@me/index.ts b/src/api/routes/users/@me/index.ts index 5eba4665..abfb333a 100644 --- a/src/api/routes/users/@me/index.ts +++ b/src/api/routes/users/@me/index.ts @@ -130,6 +130,7 @@ router.patch( } user.assign(body); + user.validate(); await user.save(); // @ts-ignore -- cgit 1.5.1