Skip to content

Commit

Permalink
fix(hub): fix bug that preventing leaving hubs
Browse files Browse the repository at this point in the history
  • Loading branch information
dev-737 authored Jan 21, 2024
1 parent aa389e7 commit 6169d2d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/commands/slash/Main/hub/leave.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ export default class Leave extends Hub {
return;
}

const validConnection = await db.connectedList.findFirst({ where: { id: customId.args[1] } });
const validConnection = await db.connectedList.findFirst({ where: { channelId } });
if (!validConnection) {
await interaction.update({
content: t({ phrase: 'connection.notFound', locale }, { emoji: emojis.no }),
Expand Down

0 comments on commit 6169d2d

Please sign in to comment.