mirror of
https://github.com/appwrite/appwrite
synced 2026-05-23 17:08:45 +00:00
Update failed status
This commit is contained in:
parent
b34f4c1294
commit
f223e8b948
2 changed files with 2 additions and 2 deletions
|
|
@ -1284,7 +1284,7 @@ App::post('/v1/functions/:functionId/executions')
|
|||
);
|
||||
|
||||
/** Update execution status */
|
||||
$status = $executionResponse['statusCode'] >= 500 ? 'failed' : 'completed';
|
||||
$status = $executionResponse['statusCode'] >= 400 ? 'failed' : 'completed';
|
||||
$execution->setAttribute('status', $status);
|
||||
$execution->setAttribute('statusCode', $executionResponse['statusCode']);
|
||||
$execution->setAttribute('logs', $executionResponse['logs']);
|
||||
|
|
|
|||
|
|
@ -168,7 +168,7 @@ Server::setResource('execute', function () {
|
|||
headers: $headers,
|
||||
);
|
||||
|
||||
$status = $executionResponse['statusCode'] >= 500 ? 'failed' : 'completed';
|
||||
$status = $executionResponse['statusCode'] >= 400 ? 'failed' : 'completed';
|
||||
|
||||
/** Update execution status */
|
||||
$execution
|
||||
|
|
|
|||
Loading…
Reference in a new issue