Skip to content

Commit

Permalink
Add missing ID selection
Browse files Browse the repository at this point in the history
  • Loading branch information
encode42 committed May 2, 2024
1 parent 53e040b commit 77fa261
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/database.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ database
.run();

const query = {
"select": database.query("SELECT message_count, last_seen, verified FROM users WHERE id = $id;"),
"select": database.query("SELECT id, message_count, last_seen, verified FROM users WHERE id = $id;"),
"update": database.query("UPDATE users SET last_seen = $timestamp, message_count = $count WHERE ID = $id;"),
"verify": database.query("UPDATE users SET verified = true WHERE ID = $id;"),
"create": database.query(`
Expand Down

0 comments on commit 77fa261

Please sign in to comment.