From c00c70985c4674ccf18708b5631222b5d7dbae6e 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