Ryan Wright 5 dias atrás
pai
commit
f30fb0ba37
1 arquivos alterados com 1 adições e 1 exclusões
  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,