summary refs log tree commit diff
path: root/src/api
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
commitc00c70985c4674ccf18708b5631222b5d7dbae6e (patch)
tree5d0cd53f756150ce6b336e06ae149ca4ce2bd023 /src/api
parentTry to fix loginRedirect (diff)
downloadserver-c00c70985c4674ccf18708b5631222b5d7dbae6e.tar.xz
fix bad user validation
Diffstat (limited to 'src/api')
-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