From 2f66ae5533c72af7d569915740f4b5d8a11ba2d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matej=20Ba=C4=8Do?= Date: Wed, 25 Mar 2026 13:28:16 +0100 Subject: [PATCH] AI review fixes --- src/Appwrite/Platform/Modules/VCS/Http/GitHub/Deployment.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Appwrite/Platform/Modules/VCS/Http/GitHub/Deployment.php b/src/Appwrite/Platform/Modules/VCS/Http/GitHub/Deployment.php index f052d62919..04e2dbd406 100644 --- a/src/Appwrite/Platform/Modules/VCS/Http/GitHub/Deployment.php +++ b/src/Appwrite/Platform/Modules/VCS/Http/GitHub/Deployment.php @@ -144,6 +144,7 @@ trait Deployment Query::equal('resourceType', [$resourceCollection]), Query::equal('providerCommitHash', [$providerCommitHash]), Query::equal('providerBranch', [$providerBranch]), + Query::orderDesc('$createdAt') ])); $commentStatus = $existingDeployment->getAttribute('status', 'waiting'); @@ -310,7 +311,7 @@ trait Deployment ])); // Skip rest - prevent double deployments (previous one was made by push) - return; + continue; } $commands = [];