From 77fa261c27128622140872ee6bcdd74edb472158 Mon Sep 17 00:00:00 2001 From: encode42 Date: Thu, 2 May 2024 02:47:24 -0400 Subject: [PATCH] Add missing ID selection --- src/database.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/database.ts b/src/database.ts index 58042f2..7d7ea61 100644 --- a/src/database.ts +++ b/src/database.ts @@ -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(`