summary refs log tree commit diff
diff options
context:
space:
mode:
authorBuildTools <59115290+BanTheNons@users.noreply.github.com>2021-08-07 22:23:23 +0300
committerBuildTools <59115290+BanTheNons@users.noreply.github.com>2021-08-07 22:23:23 +0300
commitd5db903f78fe70125b829c5b0ca547e07f89ecb9 (patch)
treeb595e1cb4db15f8f29bf175b86393deb94f01988
parentMerge pull request #190 from BanTheNons/profile-banners (diff)
downloadserver-d5db903f78fe70125b829c5b0ca547e07f89ecb9.tar.xz
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..f4ffe1b8 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.banner = 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 } })