From f7e44a31bec31e4d2168bfff74cd053c6e1081b5 Mon Sep 17 00:00:00 2001 From: Christy Jacob Date: Tue, 25 Jan 2022 03:05:41 +0400 Subject: [PATCH] feat: reneame create-tag endpoint --- app/controllers/api/functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/api/functions.php b/app/controllers/api/functions.php index 6ea65eceb4..4aaa387646 100644 --- a/app/controllers/api/functions.php +++ b/app/controllers/api/functions.php @@ -554,7 +554,7 @@ App::post('/v1/functions/:functionId/deployments') if ((bool) $deploy) { // Remove deploy for all other deployments. - $deployments = $dbForProject->find('tags', [ + $deployments = $dbForProject->find('deployments', [ new Query('deploy', Query::TYPE_EQUAL, [true]), new Query('functionId', Query::TYPE_EQUAL, [$functionId]) ]);