summary refs log tree commit diff
path: root/src/api
diff options
context:
space:
mode:
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