feat: rename environment variable

This commit is contained in:
Christy Jacob
2022-07-27 09:17:00 +05:30
parent 86e8470784
commit da16c0159b
5 changed files with 28 additions and 28 deletions
+2 -2
View File
@@ -195,7 +195,7 @@ class DatabasePool
{
/** Get DB name from the console database */
[$name, $internalID] = $this->getName($projectID, $redis);
$pool = $this->pools[$name] ?? throw new Exception("Database pool with name : $name not found. Check the value of _APP_PROJECT_DB in .env", 500);
$pool = $this->pools[$name] ?? throw new Exception("Database pool with name : $name not found. Check the value of _APP_DB_PROJECT in .env", 500);
$namespace = "_$internalID";
$attempts = 0;
@@ -236,7 +236,7 @@ class DatabasePool
public function getAnyFromPool(\Redis $redis): array
{
$name = array_rand($this->pools);
$pool = $this->pools[$name] ?? throw new Exception("Database pool with name : $name not found. Check the value of _APP_PROJECT_DB in .env", 500);
$pool = $this->pools[$name] ?? throw new Exception("Database pool with name : $name not found. Check the value of _APP_DB_PROJECT in .env", 500);
$attempts = 0;
do {