Merge pull request #2869 from appwrite/fix-deployment-activate-param

Fix: Deployment activate param
This commit is contained in:
Christy Jacob
2022-03-01 22:13:11 +04:00
committed by GitHub
+2 -3
View File
@@ -558,10 +558,9 @@ App::post('/v1/functions/:functionId/deployments')
throw new Exception('Failed moving file', 500, Exception::GENERAL_SERVER_ERROR);
}
$activate = (bool) filter_var($activate, FILTER_VALIDATE_BOOLEAN);
if($chunksUploaded === $chunks) {
$activate = (bool) filter_var($activate, FILTER_VALIDATE_BOOLEAN);
if ($activate) {
// Remove deploy for all other deployments.
$activeDeployments = $dbForProject->find('deployments', [