Browse Source

Fix access

Ryan Wright 4 days ago
parent
commit
f30fb0ba37
1 changed files with 1 additions and 1 deletions
  1. 1 1
      index.ts

+ 1 - 1
index.ts

@@ -10,7 +10,7 @@ const TICKET_CODE_REGEX = /^#T\d+$/;
 const DB_CLEANUP_INTERVAL = 24 * 60 * 60 * 1000; // Day
 
 (async () => {
-  const db = new Database("./db/tickets.db");
+  const db = new Database("./db/tickets.db", { create: true, readwrite: true });
   db.run(`
 CREATE TABLE IF NOT EXISTS counters (
   key TEXT NOT NULL PRIMARY KEY,