浏览代码

Remove upset file

Ryan Wright 5 天之前
父节点
当前提交
919e42b9cf
共有 1 个文件被更改,包括 0 次插入4 次删除
  1. 0 4
      index.ts

+ 0 - 4
index.ts

@@ -10,10 +10,6 @@ const TICKET_CODE_REGEX = /^#T\d+$/;
 const DB_CLEANUP_INTERVAL = 24 * 60 * 60 * 1000; // Day
 
 (async () => {
-  if (!(await Bun.file("./db/tickets.db").exists())) {
-    await Bun.write("./db/tickets.db", "");
-  }
-
   const db = new Database("./db/tickets.db");
   db.run(`
 CREATE TABLE IF NOT EXISTS counters (