1
0
mirror of https://github.com/spacebarchat/server.git synced 2024-11-07 11:22:35 +01:00

Merge pull request #187 from BanTheNons/fix-typo

Fixed a typo in vanity_url
This commit is contained in:
Flam3rboy 2021-08-07 10:21:42 +02:00 committed by GitHub
commit 0d09629f2b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -10,7 +10,7 @@ router.get("/", async (req: Request, res: Response) => {
const guild = await GuildModel.findOne({ id: guild_id }).exec(); const guild = await GuildModel.findOne({ id: guild_id }).exec();
if (!guild.vanity_url) throw new HTTPError("This guild has no vanity url", 204); if (!guild.vanity_url) throw new HTTPError("This guild has no vanity url", 204);
return res.json({ vanity_ur: guild.vanity_url }); return res.json({ vanity_url: guild.vanity_url });
}); });
export default router; export default router;