Skip to content

Open-source Grok Bot alternative with a virtual machine that bots can use

chore: keep server/message-db.ts under 1,000-line size ratchet

milind-soni5f976c5bf40f
diff --git a/server/message-db.ts b/server/message-db.ts
index 175f27c9d9..2da46f4b9b 100644
--- a/server/message-db.ts
+++ b/server/message-db.ts
@@ -46,11 +46,7 @@ function open(): DatabaseSync {
chmodSync(file, 0o600);
} catch {}
const db = new DatabaseSync(file);
- db.exec("PRAGMA busy_timeout = 5000");
- db.exec("PRAGMA journal_mode = WAL");
- db.exec("PRAGMA synchronous = NORMAL");
- db.exec("PRAGMA journal_size_limit = 67108864");
- db.exec("PRAGMA temp_store = MEMORY");
+ db.exec("PRAGMA busy_timeout = 5000; PRAGMA journal_mode = WAL; PRAGMA synchronous = NORMAL; PRAGMA journal_size_limit = 67108864; PRAGMA temp_store = MEMORY");
db.exec(`
CREATE TABLE IF NOT EXISTS messages (
thread_id TEXT NOT NULL,