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 | c00c70985c4674ccf18708b5631222b5d7dbae6e (patch) | |
tree | 5d0cd53f756150ce6b336e06ae149ca4ce2bd023 /src/api | |
parent | Try to fix loginRedirect (diff) | |
download | server-c00c70985c4674ccf18708b5631222b5d7dbae6e.tar.xz |
fix bad user validation
Diffstat (limited to 'src/api')
-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 |