Sfoglia il codice sorgente

Another try for db path

jerryliao 1 anno fa
parent
commit
75e6549c65
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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(`