From 0d97580361b0553257ec323cc6eab232af03f3d2 Mon Sep 17 00:00:00 2001 From: Damodar Lohani Date: Wed, 17 Aug 2022 10:13:50 +0000 Subject: [PATCH] fix usage params in execution --- app/controllers/api/functions.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/controllers/api/functions.php b/app/controllers/api/functions.php index 6a3cd9361d..84f4be9dd5 100644 --- a/app/controllers/api/functions.php +++ b/app/controllers/api/functions.php @@ -1073,9 +1073,9 @@ App::post('/v1/functions/:functionId/executions') // TODO revise this later using route label $usage ->setParam('functionId', $function->getId()) - ->setParam('functionExecution', 1) - ->setParam('functionStatus', $execution->getAttribute('status', '')) - ->setParam('functionExecutionTime', $execution->getAttribute('time')); // ms + ->setParam('executions.{scope}.compute', 1) + ->setParam('executionStatus', $execution->getAttribute('status', '')) + ->setParam('executionTime', $execution->getAttribute('time')); // ms $roles = Authorization::getRoles(); $isPrivilegedUser = Auth::isPrivilegedUser($roles);