sed and config fix for MySQL socket, accept CLA for @dsbaars

This commit is contained in:
Djuri Baars
2022-03-13 15:09:16 +01:00
parent bc729dc6f4
commit 320ce82885
3 changed files with 5 additions and 2 deletions

View File

@@ -15,7 +15,7 @@ export class DB {
timezone: '+00:00',
}
if (config.DATABASE.SOCKET)
if (config.DATABASE.SOCKET && config.DATABASE.SOCKET != "")
poolConfig.socketPath = config.DATABASE.SOCKET
else
poolConfig.host = config.DATABASE.HOST