mirror of
https://github.com/ReVanced/revanced-bots.git
synced 2026-01-11 13:56:15 +00:00
fix(bots/discord): open database as read-write
This commit is contained in:
@@ -56,7 +56,7 @@ if (DatabasePath && !existsSync(DatabasePath)) {
|
||||
}
|
||||
}
|
||||
|
||||
const db = new Database(DatabasePath)
|
||||
const db = new Database(DatabasePath, { readwrite: true, create: true })
|
||||
if (dbSchemaFileName) db.run(readFileSync(join(DatabaseSchemaDir, dbSchemaFileName)).toString())
|
||||
|
||||
export const database = drizzle(db, {
|
||||
|
||||
Reference in New Issue
Block a user