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:
Palm
2024-07-08 17:18:39 +00:00
committed by GitHub
parent 9b6ba56d99
commit 77fefb9bef
12 changed files with 29 additions and 27 deletions

View File

@@ -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