diff --git a/docker-compose.yml b/docker-compose.yml index 04d623df35..f4f93da9f2 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -950,7 +950,7 @@ services: appwrite-browser: container_name: appwrite-browser - image: appwrite/browser:0.1.0 + image: appwrite/browser:0.2.0 networks: - appwrite diff --git a/src/Appwrite/Platform/Modules/Functions/Workers/Builds.php b/src/Appwrite/Platform/Modules/Functions/Workers/Builds.php index a8b94666b0..fe925750e0 100644 --- a/src/Appwrite/Platform/Modules/Functions/Workers/Builds.php +++ b/src/Appwrite/Platform/Modules/Functions/Workers/Builds.php @@ -741,12 +741,12 @@ class Builds extends Action 'screenshot' => [ 'headers' => [ 'x-appwrite-hostname' => $rule->getAttribute('domain') ], 'url' => 'http://traefik/?appwrite-preview=1&appwrite-theme=light', - 'color' => 'light' + 'theme' => 'light' ], 'screenshotDark' => [ 'headers' => [ 'x-appwrite-hostname' => $rule->getAttribute('domain') ], 'url' => 'http://traefik/?appwrite-preview=1&appwrite-theme=dark', - 'color' => 'dark' + 'theme' => 'dark' ], ]; diff --git a/src/Appwrite/Platform/Workers/Deletes.php b/src/Appwrite/Platform/Workers/Deletes.php index 461ce9af88..e2e6fc5545 100644 --- a/src/Appwrite/Platform/Workers/Deletes.php +++ b/src/Appwrite/Platform/Workers/Deletes.php @@ -99,7 +99,7 @@ class Deletes extends Action $this->deleteFunction($dbForPlatform, $getProjectDB, $deviceForFunctions, $deviceForBuilds, $certificates, $document, $project); break; case DELETE_TYPE_DEPLOYMENTS: - $this->deleteDeployment($dbForPlatform, $getProjectDB, $deviceForFunctions, $deviceForBuilds, $document, $certificates, $project); + $this->deleteDeployment($dbForPlatform, $getProjectDB, $deviceForFunctions, $deviceForBuilds, $deviceForFiles, $document, $certificates, $project); break; case DELETE_TYPE_USERS: $this->deleteUser($getProjectDB, $document, $project); @@ -1048,7 +1048,7 @@ class Deletes extends Action * @return void * @throws Exception */ - private function deleteDeployment(Database $dbForPlatform, callable $getProjectDB, Device $deviceForFunctions, Device $deviceForBuilds, Document $document, CertificatesAdapter $certificates, Document $project): void + private function deleteDeployment(Database $dbForPlatform, callable $getProjectDB, Device $deviceForFunctions, Device $deviceForBuilds, Device $deviceForFiles, Document $document, CertificatesAdapter $certificates, Document $project): void { $projectId = $project->getId(); $dbForProject = $getProjectDB($project); @@ -1060,6 +1060,11 @@ class Deletes extends Action */ $this->deleteDeploymentFiles($deviceForFunctions, $document); //TODO: For sites, this should be deviceForSites + /** + * Delete deployment screenshots + */ + $this->deleteDeploymentScreenshots($deviceForFiles, $dbForPlatform, $document); + /** * Delete builds */ diff --git a/src/Appwrite/Utopia/Response/Model/Deployment.php b/src/Appwrite/Utopia/Response/Model/Deployment.php index 3f226d72ea..f5deb7ac6d 100644 --- a/src/Appwrite/Utopia/Response/Model/Deployment.php +++ b/src/Appwrite/Utopia/Response/Model/Deployment.php @@ -84,7 +84,7 @@ class Deployment extends Model ]) ->addRule('screenshotDark', [ 'type' => self::TYPE_STRING, - 'description' => 'Screenshot with dark theme prefference file ID.', + 'description' => 'Screenshot with dark theme preference file ID.', 'default' => '', 'example' => '5e5ea5c16897e', ])