fix
This commit is contained in:
1 parent
d7ec0c6bdc
commit
9275b8bfdd
2 files changed
+2
-2
No files matched your search
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
# deps
|
# deps
|
||||||
node_modules/
|
node_modules/
|
||||||
*.db
|
data/*.db
|
||||||
dist/
|
dist/
|
||||||
+1
-1
@@ -2,7 +2,7 @@ import { Database } from 'bun:sqlite'
|
|||||||
import { drizzle } from 'drizzle-orm/bun-sqlite'
|
import { drizzle } from 'drizzle-orm/bun-sqlite'
|
||||||
import * as schema from './schema'
|
import * as schema from './schema'
|
||||||
|
|
||||||
const dbPath = `${process.cwd()}/uploads.db`
|
const dbPath = `${process.cwd()}/data/uploads.db`
|
||||||
const sqlite = new Database(dbPath)
|
const sqlite = new Database(dbPath)
|
||||||
const db = drizzle(sqlite, { schema })
|
const db = drizzle(sqlite, { schema })
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user