Merge branch 'feat-functions-refactor' of github.com:appwrite/appwrite into fix-review-comments

This commit is contained in:
Christy Jacob committed 2022-02-24 18:58:35 +04:00
commit fcb2fafbf0
3 files changed
+1 -58

No files matched your search

+1 -2
View File
@@ -967,11 +967,10 @@ App::post('/v1/functions/:functionId/executions')
}
Authorization::skip(fn() => $dbForProject->updateDocument('executions', $executionId, $execution));
$executionResponse['response'] = ($executionResponse['status'] !== 'completed') ? $executionResponse['stderr'] : $executionResponse['stdout'];
$response
->setStatusCode(Response::STATUS_CODE_CREATED)
->dynamic(new Document($executionResponse), Response::MODEL_SYNC_EXECUTION);
->dynamic($execution, Response::MODEL_EXECUTION);
});
App::get('/v1/functions/:functionId/executions')