From 1c165b8c8d30e67eafa17abe869a6ba1029cfc9f Mon Sep 17 00:00:00 2001 From: fogelito Date: Tue, 16 Dec 2025 09:49:35 +0200 Subject: [PATCH] endpoint fallback --- src/Appwrite/Platform/Workers/Migrations.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Appwrite/Platform/Workers/Migrations.php b/src/Appwrite/Platform/Workers/Migrations.php index 78ae7c4ced..93d29a00fa 100644 --- a/src/Appwrite/Platform/Workers/Migrations.php +++ b/src/Appwrite/Platform/Workers/Migrations.php @@ -153,7 +153,7 @@ class Migrations extends Action $database = null; $queries = []; - if ($credentials['endpoint'] === 'http://localhost/v1') { + if (($credentials['endpoint'] ?? null) === 'http://localhost/v1') { $platform = Config::getParam('platform', []); $protocol = System::getEnv('_APP_OPTIONS_FORCE_HTTPS') === 'disabled' ? 'http' : 'https'; $credentials['endpoint'] = $protocol . '://' . $platform['apiHostname'] . '/v1';