mirror of
https://github.com/ReVanced/revanced-bots.git
synced 2026-01-21 10:13:57 +00:00
chore: fix more build issues
BREAKING CHANGE: In `@revanced/discord-bot`, its environment variable
`DATABASE_URL` has been renamed to `DATABASE_PATH`
and the `file:` prefix is no longer needed
This commit is contained in:
@@ -29,7 +29,7 @@ export const api = {
|
||||
disconnectCount: 0,
|
||||
}
|
||||
|
||||
const db = new Database(process.env['DATABASE_URL'])
|
||||
const db = new Database(process.env['DATABASE_PATH'])
|
||||
|
||||
export const database = drizzle(db, {
|
||||
schema: schemas,
|
||||
@@ -61,5 +61,8 @@ export const discord = {
|
||||
],
|
||||
},
|
||||
}),
|
||||
commands: Object.fromEntries(Object.values<Command>(commands).map((cmd) => [cmd.data.name, cmd])) as Record<string, Command>,
|
||||
commands: Object.fromEntries(Object.values<Command>(commands).map(cmd => [cmd.data.name, cmd])) as Record<
|
||||
string,
|
||||
Command
|
||||
>,
|
||||
} as const
|
||||
|
||||
Reference in New Issue
Block a user