浏览代码

Another try for db path

jerryliao 1 年之前
父节点
当前提交
75e6549c65
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      utils/db.ts

+ 1 - 1
utils/db.ts

@@ -1,7 +1,7 @@
 import { DB } from "$sqlite/mod.ts";
 
 function prepareDB(tableName: string) {
-  const db = new DB("/data/postdown.db");
+  const db = new DB("./data/postdown.db");
   switch (tableName) {
     case "User":
       db.execute(`