From 21887e64011c9560f0401ac4fd99314b3af66367 Mon Sep 17 00:00:00 2001 From: Christy Jacob Date: Fri, 25 Feb 2022 15:12:44 +0400 Subject: [PATCH] feat: fix retry deployment endpoint --- app/controllers/api/functions.php | 1 + 1 file changed, 1 insertion(+) diff --git a/app/controllers/api/functions.php b/app/controllers/api/functions.php index ff232e43e..dd3a466b4 100644 --- a/app/controllers/api/functions.php +++ b/app/controllers/api/functions.php @@ -581,6 +581,7 @@ App::post('/v1/functions/:functionId/deployments') } $activate = (bool) filter_var($activate, FILTER_VALIDATE_BOOLEAN); + if ($activate) { // Remove deploy for all other deployments. $activeDeployments = $dbForProject->find('deployments', [