diff --git a/app/workers/functions.php b/app/workers/functions.php index f89e2ce0f4..6a78e07a14 100644 --- a/app/workers/functions.php +++ b/app/workers/functions.php @@ -483,18 +483,7 @@ class FunctionsV1 extends Worker ->setParam('projectId', $projectId) ->setParam('userId', $userId) ->setParam('event', 'functions.executions.update') - ->setParam('payload', [ - '$id' => $execution['$id'], - '$permissions' => $execution['$permissions'], - 'functionId' => $execution['functionId'], - 'dateCreated' => $execution['dateCreated'], - 'trigger' => $execution['trigger'], - 'status' => $execution['status'], - 'exitCode' => $execution['exitCode'], - 'stdout' => $execution['stdout'], - 'stderr' => $execution['stderr'], - 'time' => $execution['time'] - ]); + ->setParam('payload', $execution->getArrayCopy()); $executionUpdate->trigger();