Fix Postgres config loading

This commit is contained in:
Mia 2022-12-22 15:57:05 -06:00
parent 9c3864e23e
commit 35c7c62566

View File

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