diff --git a/app/controllers/api/functions.php b/app/controllers/api/functions.php index 74eadb009f..0741f09907 100644 --- a/app/controllers/api/functions.php +++ b/app/controllers/api/functions.php @@ -598,7 +598,7 @@ App::post('/v1/functions/:functionId/deployments') // Enqueue a message to start the build Resque::enqueue(Event::BUILDS_QUEUE_NAME, Event::BUILDS_CLASS_NAME, [ 'projectId' => $project->getId(), - 'resourceId' => $function->getId(), + 'functionId' => $function->getId(), 'deploymentId' => $deploymentId, 'type' => BUILD_TYPE_DEPLOYMENT ]);