Skip to content

Commit 2d6cc75

Browse files
committed
hotixes
1 parent b38ced1 commit 2d6cc75

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/utils/queueHelpers.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -193,9 +193,12 @@ export async function joinQueues(
193193
}
194194

195195
// checks if user is already in that queue
196-
const res = await pool.query(`
196+
const res = await pool.query(
197+
`
197198
SELECT count(*) FROM queue_users WHERE user_id = $1 AND queue_join_time IS NOT NULL
198-
`)
199+
`,
200+
[userId],
201+
)
199202
if (res.rows.length > 0) {
200203
await interaction
201204
?.followUp({ content: "You're already in queue!" })

0 commit comments

Comments
 (0)