Skip to content
This repository was archived by the owner on May 15, 2025. It is now read-only.

Commit ed7c331

Browse files
astro nearly banned me
1 parent 79c512e commit ed7c331

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/commands/main/data.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ class GetDataCommand implements SlashCommand {
1818
try {
1919
const user = interaction.user;
2020
const userId = interaction.user.id; // Needed for DB
21-
22-
//const results = await this.db('KOGDB').where({ userid: userId });
21+
const db = knex({ client: 'mysql', connection: this.kogBot.environment.database });
22+
const results = await db('kog').where({ userid: userId });
2323

2424
if (results.length > 0) {
2525
const { eventsAttended, eventsHosted } = results[0];

0 commit comments

Comments
 (0)