From 822cf583e3614000589601c97d0270929b5f7a87 Mon Sep 17 00:00:00 2001 From: dev-737 <73829355+dev-737@users.noreply.github.com> Date: Fri, 29 Dec 2023 19:38:33 +0530 Subject: [PATCH] fix: fixed being able to join private hubs without invite --- src/commands/slash/Main/hub/join.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands/slash/Main/hub/join.ts b/src/commands/slash/Main/hub/join.ts index 1c38c807..a327ee51 100644 --- a/src/commands/slash/Main/hub/join.ts +++ b/src/commands/slash/Main/hub/join.ts @@ -53,7 +53,7 @@ export default class JoinSubCommand extends Hub { hub = fetchedInvite.hub; } else { - hub = await db.hubs.findFirst({ where: { name: hubName } }); + hub = await db.hubs.findFirst({ where: { name: hubName, private: false } }); if (!hub) { return await interaction.reply({