fix
This commit is contained in:
@@ -1,9 +1,8 @@
|
|||||||
import { Database } from 'bun:sqlite'
|
import { Database } from 'bun:sqlite'
|
||||||
import { drizzle } from 'drizzle-orm/bun-sqlite'
|
import { drizzle } from 'drizzle-orm/bun-sqlite'
|
||||||
import { join } from 'path'
|
|
||||||
import * as schema from './schema'
|
import * as schema from './schema'
|
||||||
|
|
||||||
const dbPath = join(process.cwd(), 'uploads.db')
|
const dbPath = `${process.cwd()}/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