mirror of
https://github.com/spacebarchat/server.git
synced 2026-10-22 21:53:46 +00:00
[Fix] Changing bio and accent color
This commit is contained in:
1 parent
4b1f30ba43
commit
ec52a370da
1 file changed
+1
-1
@@ -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") }
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user