Skip to content

Commit

Permalink
fix: fixed being able to join private hubs without invite
Browse files Browse the repository at this point in the history
  • Loading branch information
dev-737 committed Dec 29, 2023
1 parent 8f9ffa7 commit 822cf58
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/commands/slash/Main/hub/join.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down

0 comments on commit 822cf58

Please sign in to comment.