summary refs log tree commit diff
path: root/api/src/util
diff options
context:
space:
mode:
authorFeatyre <twooter.0g179@simplelogin.co>2022-01-24 22:59:14 +0800
committerFeatyre <twooter.0g179@simplelogin.co>2022-01-24 22:59:14 +0800
commitcc492f07dcc2be60ef6396c690028da4bcea546b (patch)
treeeb4ec0989289cb4e3cbaa2ded5f1c4db8ff42561 /api/src/util
parentPrep for Category db work (diff)
downloadserver-cc492f07dcc2be60ef6396c690028da4bcea546b.tar.xz
Partnet + Discover fix and join
Diffstat (limited to 'api/src/util')
-rw-r--r--api/src/util/handlers/route.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/api/src/util/handlers/route.ts b/api/src/util/handlers/route.ts
index 05658ad3..0048c4dd 100644
--- a/api/src/util/handlers/route.ts
+++ b/api/src/util/handlers/route.ts
@@ -73,7 +73,7 @@ const normalizeBody = (body: any = {}) => {
 		} else {
 			for (const [key, value] of Object.entries(object)) {
 				if (value == null) {
-					if (key === "icon" || key === "avatar" || key === "banner" || key === "splash") continue;
+					if (key === "icon" || key === "avatar" || key === "banner" || key === "splash" || key === "discovery_splash") continue;
 					delete object[key];
 				} else if (typeof value === "object") {
 					normalizeObject(value);