diff options
author | Madeline <46743919+MaddyUnderStars@users.noreply.github.com> | 2022-10-27 23:12:48 +1100 |
---|---|---|
committer | Madeline <46743919+MaddyUnderStars@users.noreply.github.com> | 2022-10-27 23:12:48 +1100 |
commit | 1edcd2752a8ce8af298fdf1febcda5a423982e71 (patch) | |
tree | 91fc168993367d9406444b8c1d84020b307fdb04 /src/api/routes/users/@me | |
parent | Try to fix loginRedirect (diff) | |
download | server-1edcd2752a8ce8af298fdf1febcda5a423982e71.tar.xz |
fix bad user validation
Diffstat (limited to 'src/api/routes/users/@me')
-rw-r--r-- | src/api/routes/users/@me/index.ts | 1 |
1 files changed, 1 insertions, 0 deletions
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 |