summary refs log tree commit diff
path: root/src/api/routes/users/@me/index.ts
diff options
context:
space:
mode:
authorMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2022-10-27 23:12:48 +1100
committerMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2022-10-27 23:12:48 +1100
commit1edcd2752a8ce8af298fdf1febcda5a423982e71 (patch)
tree91fc168993367d9406444b8c1d84020b307fdb04 /src/api/routes/users/@me/index.ts
parentTry to fix loginRedirect (diff)
downloadserver-1edcd2752a8ce8af298fdf1febcda5a423982e71.tar.xz
fix bad user validation
Diffstat (limited to 'src/api/routes/users/@me/index.ts')
-rw-r--r--src/api/routes/users/@me/index.ts1
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