mirror of
https://github.com/spacebarchat/server.git
synced 2024-11-11 05:02:37 +01:00
oops
This commit is contained in:
parent
d5db903f78
commit
78f24910e5
@ -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 } })
|
||||
|
Loading…
Reference in New Issue
Block a user