1
0
mirror of https://github.com/xuthus83/pigallery2.git synced 2024-11-03 21:04:03 +08:00

fixing config error

This commit is contained in:
Patrik J. Braun 2019-12-09 17:29:48 +01:00
parent d20753a6c8
commit 41a51e79a9

View File

@ -92,10 +92,10 @@ export class PrivateConfigClass extends PublicConfigClass implements IPrivateCon
ConfigLoader.loadBackendConfig(this, ConfigLoader.loadBackendConfig(this,
path.join(__dirname, './../../../config.json'), path.join(__dirname, './../../../config.json'),
[['PORT', 'Server-port'], [['PORT', 'Server-port'],
['MYSQL_HOST', 'Server-database-mysql-host'], ['MYSQL_HOST', 'Server-Database-mysql-host'],
['MYSQL_PASSWORD', 'Server-database-mysql-password'], ['MYSQL_PASSWORD', 'Server-Database-mysql-password'],
['MYSQL_USERNAME', 'Server-database-mysql-username'], ['MYSQL_USERNAME', 'Server-Database-mysql-username'],
['MYSQL_DATABASE', 'Server-database-mysql-database']]); ['MYSQL_DATABASE', 'Server-Database-mysql-database']]);
this.removeComment(); this.removeComment();
if (Utils.enumToArray(UserRoles).map(r => r.key).indexOf(this.Client.unAuthenticatedUserRole) === -1) { if (Utils.enumToArray(UserRoles).map(r => r.key).indexOf(this.Client.unAuthenticatedUserRole) === -1) {