diff options
author | BuildTools <59115290+BanTheNons@users.noreply.github.com> | 2021-08-07 22:24:42 +0300 |
---|---|---|
committer | BuildTools <59115290+BanTheNons@users.noreply.github.com> | 2021-08-07 22:24:42 +0300 |
commit | 78f24910e5c30be75c76a94f2f97bd6cafb2f952 (patch) | |
tree | d5cebdbb8977df6648d5ee1ec396c2e88798a6ec | |
parent | Implemented invite splashes (diff) | |
download | server-78f24910e5c30be75c76a94f2f97bd6cafb2f952.tar.xz |
oops
-rw-r--r-- | src/routes/guilds/#guild_id/index.ts | 2 |
1 files changed, 1 insertions, 1 deletions
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 } }) |