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 7fd9e27cc2
commit 465529b03f
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