summary refs log tree commit diff
path: root/api
diff options
context:
space:
mode:
authorRealMANI <96433859+ImAaronFR@users.noreply.github.com>2022-03-06 12:20:47 +0330
committerErkin Alp Güney <erkinalp9035@gmail.com>2022-03-06 12:18:58 +0300
commitb51e687793aa9c752d9643cf7a9ac4c3dade6bd2 (patch)
treea09225e67b4caaf7d96cf95a31d64a277d1b3a2f /api
parentFixed npm run tsnode throwing error about ES modules for node-fetch. Probably... (diff)
downloadserver-b51e687793aa9c752d9643cf7a9ac4c3dade6bd2.tar.xz
[Fix] Changing bio and accent color
Diffstat (limited to 'api')
-rw-r--r--api/src/routes/users/@me/index.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/api/src/routes/users/@me/index.ts b/api/src/routes/users/@me/index.ts
index 5834921c..78e203a2 100644
--- a/api/src/routes/users/@me/index.ts
+++ b/api/src/routes/users/@me/index.ts
@@ -58,7 +58,7 @@ router.patch("/", route({ body: "UserModifySchema" }), async (req: Request, res:
 	}
 
 	var check_username = body?.username?.replace(/\s/g, '');
-	if(!check_username && !body?.avatar && !body?.banner) {
+	if(!check_username && !body?.avatar && !body?.banner && !body?.bio && !body?.accent_color) {
 		throw FieldErrors({
 			username: { code: "BASE_TYPE_REQUIRED", message: req.t("common:field.BASE_TYPE_REQUIRED") }
 		});