1
0
mirror of https://github.com/danog/MadelineProto.git synced 2025-01-22 12:31:15 +01:00

Small fix

This commit is contained in:
Daniil Gentili 2023-05-27 00:08:16 +02:00
parent 91fbd06827
commit 9f2913b487

View File

@ -27,7 +27,7 @@ final class Postgres
$config = PostgresConfig::fromString('host='.\str_replace('tcp://', '', $settings->getUri()))
->withUser($settings->getUsername())
->withPassword($settings->getPassword())
->withDatabase(\strtolower($settings->getDatabase()));
->withDatabase($settings->getDatabase());
static::createDb($config);
static::$connections[$dbKey] = new PostgresConnectionPool($config, $settings->getMaxConnections(), $settings->getIdleTimeout());