summary refs log tree commit diff
diff options
context:
space:
mode:
authorFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-08-07 21:27:47 +0200
committerGitHub <noreply@github.com>2021-08-07 21:27:47 +0200
commitbf98804d4119d205e4a5ffcf2bb6e42f8a9f50ab (patch)
treed5cebdbb8977df6648d5ee1ec396c2e88798a6ec
parentMerge pull request #190 from BanTheNons/profile-banners (diff)
parentoops (diff)
downloadserver-bf98804d4119d205e4a5ffcf2bb6e42f8a9f50ab.tar.xz
Merge pull request #191 from BanTheNons/invite-splashes
Implemented invite splashes
-rw-r--r--src/routes/guilds/#guild_id/index.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/routes/guilds/#guild_id/index.ts b/src/routes/guilds/#guild_id/index.ts

index 404a289a..dc4ddb39 100644 --- a/src/routes/guilds/#guild_id/index.ts +++ b/src/routes/guilds/#guild_id/index.ts
@@ -44,7 +44,8 @@ router.patch("/", check(GuildUpdateSchema), async (req: Request, res: Response) perms.hasThrow("MANAGE_GUILD"); 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.banner) body.banner = await handleFile(`/banners/${guild_id}`, body.banner); + 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 } })