From 78f24910e5c30be75c76a94f2f97bd6cafb2f952 Mon Sep 17 00:00:00 2001 From: BuildTools <59115290+BanTheNons@users.noreply.github.com> Date: Sat, 7 Aug 2021 22:24:42 +0300 Subject: oops --- src/routes/guilds/#guild_id/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routes/guilds/#guild_id/index.ts b/src/routes/guilds/#guild_id/index.ts index f4ffe1b8..dc4ddb39 100644 --- a/src/routes/guilds/#guild_id/index.ts +++ b/src/routes/guilds/#guild_id/index.ts @@ -45,7 +45,7 @@ router.patch("/", check(GuildUpdateSchema), async (req: Request, res: Response) if (body.icon) body.icon = await handleFile(`/icons/${guild_id}`, body.icon); if (body.banner) body.banner = await handleFile(`/banners/${guild_id}`, body.banner); - if (body.splash) body.banner = await handleFile(`/splashes/${guild_id}`, body.splash); + if (body.splash) body.splash = await handleFile(`/splashes/${guild_id}`, body.splash); const guild = await GuildModel.findOneAndUpdate({ id: guild_id }, body) .populate({ path: "joined_at", match: { id: req.user_id } }) -- cgit 1.4.1