🐛 fix body parse treating null not as undefined (except for icons/avatars)

This commit is contained in:
Flam3rboy
2021-09-17 23:42:40 +02:00
parent 4003fef534
commit 859fdd679b
10 changed files with 88 additions and 76 deletions
+1 -1
View File
@@ -6,7 +6,7 @@ import { DiscordApiErrors } from "@fosscord/util";
export interface GuildTemplateCreateSchema {
name: string;
avatar?: string;
avatar?: string | null;
}
router.get("/:code", route({}), async (req: Request, res: Response) => {