mirror of
https://github.com/appwrite/appwrite.git
synced 2026-11-18 20:36:03 +00:00
Merge branch 'feat-functions-refactor' of github.com:appwrite/appwrite into fix-review-comments
This commit is contained in:
commit
fcb2fafbf0
3 files changed
+1
-58
No files matched your search
@@ -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')
|
||||
|
||||
Reference in new issue
Block a user