summary refs log tree commit diff
path: root/api
diff options
context:
space:
mode:
authorKuna <65683493+Thesourtimes@users.noreply.github.com>2021-12-24 18:25:17 +0000
committerGitHub <noreply@github.com>2021-12-24 18:25:17 +0000
commitf51f34dedd229011f997364b13ca659a7eb1bd8c (patch)
treed933ff6b4f746e2e88eb15aa98d30e270ad91a46 /api
parentFix IP leaks from bans route (diff)
downloadserver-f51f34dedd229011f997364b13ca659a7eb1bd8c.tar.xz
Fix typo
Diffstat (limited to 'api')
-rw-r--r--api/src/routes/guilds/#guild_id/bans.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/api/src/routes/guilds/#guild_id/bans.ts b/api/src/routes/guilds/#guild_id/bans.ts
index e128df09..4d12ae46 100644
--- a/api/src/routes/guilds/#guild_id/bans.ts
+++ b/api/src/routes/guilds/#guild_id/bans.ts
@@ -17,7 +17,7 @@ router.get("/", route({ permission: "BAN_MEMBERS" }), async (req: Request, res:
 	/* Filter secret from database registry.*/
 	
 	bans.forEach((registry) => {
-	delete regitry.ip;
+	delete registry.ip;
 	});
 
 	return res.json(bans);