change database configuration to env vars, fix

This commit is contained in:
2023-09-27 11:39:53 +02:00
parent 73567d3230
commit 1adf5fa9d0

View File

@ -60,7 +60,7 @@ int openDatabaseConnection(t_commonHandle *handle) {
if (! handle->conn) {
logmsg(LOG_DEBUG, "Opening connection to database");
handle->conn = PQconnectdb();
handle->conn = PQconnectdb("");
} else if (PQstatus(handle->conn) != CONNECTION_OK) {
logmsg(LOG_DEBUG, "Resetting connection to database");
PQreset(handle->conn);