Skip to content

Commit a87b00b

Browse files
committed
Fix parsing db config from env
1 parent 0b37f70 commit a87b00b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/bot/Config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ export class Config {
103103
}
104104

105105
/** @type {DatabaseConfig} */
106-
let database = await this.#get('database', null, this.#parseBase64Json);
106+
let database = await this.#get('database', {}, this.#parseBase64Json);
107107
database.host ??= await this.#get(['database', 'host']);
108108
database.user ??= await this.#get(['database', 'user'], "modbot");
109109
database.password ??= await this.#get(['database', 'password']);

0 commit comments

Comments
 (0)