summary refs log tree commit diff
path: root/src/routes
diff options
context:
space:
mode:
authorBuildTools <59115290+BanTheNons@users.noreply.github.com>2021-08-07 11:20:20 +0300
committerBuildTools <59115290+BanTheNons@users.noreply.github.com>2021-08-07 11:20:20 +0300
commit46bcebcc92b3715a9065b3cf044dc578ee7f20fd (patch)
tree71ee8d76c40f87cc87172b4200c943a99338bf3a /src/routes
parentMerge branch 'master' of https://github.com/fosscord/fosscord-api (diff)
downloadserver-46bcebcc92b3715a9065b3cf044dc578ee7f20fd.tar.xz
fixed a typo
Diffstat (limited to 'src/routes')
-rw-r--r--src/routes/guilds/#guild_id/vanity-url.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/routes/guilds/#guild_id/vanity-url.ts b/src/routes/guilds/#guild_id/vanity-url.ts
index 2d210e5d..30c98d19 100644
--- a/src/routes/guilds/#guild_id/vanity-url.ts
+++ b/src/routes/guilds/#guild_id/vanity-url.ts
@@ -10,7 +10,7 @@ router.get("/", async (req: Request, res: Response) => {
 	const guild = await GuildModel.findOne({ id: guild_id }).exec();
 	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;