chore: refactor code

This commit is contained in:
Christy Jacob
2023-10-25 01:46:28 +04:00
parent d4e6e86ade
commit 2b47948b0e
2 changed files with 5 additions and 3 deletions
+1 -1
View File
@@ -791,7 +791,7 @@ services:
- OPR_PROXY_HEALTHCHECK=enabled
mariadb:
image: mysql:8.0.33 # fix issues when upgrading using: mysql_upgrade -u root -p
image: mariadb:10.7 # fix issues when upgrading using: mysql_upgrade -u root -p
container_name: appwrite-mariadb
<<: *x-logging
networks:
+4 -2
View File
@@ -283,10 +283,12 @@ class Backup extends Action
*/
public function checkEnvVariables(): void
{
foreach ([
foreach (
[
'_APP_CONNECTIONS_BACKUPS_STORAGE',
'_APP_CONNECTIONS_DB_REPLICAS',
] as $env) {
] as $env
) {
if (empty(App::getEnv($env))) {
throw new Exception('Can\'t read ' . $env);
}