mirror of
https://github.com/smogon/pokemon-showdown.git
synced 2026-04-26 02:39:38 -05:00
Fix Postgres config loading
This commit is contained in:
parent
9c3864e23e
commit
35c7c62566
|
|
@ -42,7 +42,7 @@ export class PostgresDatabase {
|
|||
static getConfig() {
|
||||
let config: AnyObject = {};
|
||||
try {
|
||||
config = require('../config/config').usepostgres;
|
||||
config = require(FS.ROOT_PATH + '/config/config').usepostgres;
|
||||
if (!config) throw new Error('Missing config for pg database');
|
||||
} catch (e: any) {}
|
||||
return config;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user