From e499af30b23cfba62de31ae19912f954bb98cdda Mon Sep 17 00:00:00 2001 From: Bradley Schofield Date: Mon, 6 Dec 2021 15:53:36 +0000 Subject: [PATCH] Move and update changelog + Improve Syncronous function error handling --- CHANGES.md | 9 ++++----- app/executor.php | 2 +- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/CHANGES.md b/CHANGES.md index 95b062139c..2f4dd94df5 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,8 +1,3 @@ - -# Unreleased Version 1.1.0 -- Added ability to create syncronous function executions -- Introduced new execution model for functions - # Version 1.0.0 ## Features @@ -10,6 +5,10 @@ - Grouped auth related attributes in project collection. Introduced new attribute `auths` and removed all attributes related to auth methods and `usersAuthLimit` as well, all these are grouped under `auths` attribute - Grouped oAuth related attributes in project collection. Introduced new attribute `providers` and removed all attributes related to OAuth2 providers. All OAuth2 attributes are grouped under `providers` - Project model changed, `userAuth` => `auth` example `userAuthEmailPassword` => `authEmailPassword`, also `userOauth2...` => `provider...` example `userOauth2GithubAppid` => `providerGithubAppid` + +# Unreleased Version 0.13.0 +- Added ability to create syncronous function executions +- Introduced new execution model for functions # Version 0.11.0 ## Features diff --git a/app/executor.php b/app/executor.php index b5b36f9dd2..73e76fdc5e 100644 --- a/app/executor.php +++ b/app/executor.php @@ -1046,7 +1046,7 @@ function execute(string $trigger, string $projectId, string $executionId, string return [ 'status' => $functionStatus, - 'response' => $stdout, + 'response' => ($functionStatus !== 'completed') ? $stderr : $stdout, 'time' => $executionTime ]; }