1
0
Fork 0
mirror of synced 2024-06-27 02:31:04 +12:00

feat: update create-deployment endpoint

This commit is contained in:
Christy Jacob 2022-01-25 03:15:53 +04:00
parent 9b77485bcd
commit 43e3f23a4e

View file

@ -590,8 +590,7 @@ App::post('/v1/functions/:functionId/deployments')
$function = $dbForProject->getDocument('functions', $functionId);
$ch = \curl_init();
// TODO: rename the tag endpoints to deployment in the executor
\curl_setopt($ch, CURLOPT_URL, "http://appwrite-executor:8080/v1/tag");
\curl_setopt($ch, CURLOPT_URL, "http://appwrite-executor:8080/v1/deployment");
\curl_setopt($ch, CURLOPT_POST, true);
\curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode([
'functionId' => $function->getId(),