mirror of
https://github.com/appwrite/appwrite
synced 2026-05-23 08:58:35 +00:00
chore: create doc
This commit is contained in:
parent
863a2ce0a9
commit
b3c00c4d32
2 changed files with 6 additions and 0 deletions
|
|
@ -1753,6 +1753,9 @@ App::post('/v1/functions/:functionId/executions')
|
|||
Console::error($th->getMessage());
|
||||
|
||||
if ($th instanceof AppwriteException) {
|
||||
if ($function->getAttribute('logging')) {
|
||||
Authorization::skip(fn () => $dbForProject->createDocument('executions', $execution));
|
||||
}
|
||||
throw $th;
|
||||
}
|
||||
} finally {
|
||||
|
|
|
|||
|
|
@ -300,6 +300,9 @@ function router(App $utopia, Database $dbForConsole, callable $getProjectDB, Swo
|
|||
Console::error($th->getMessage());
|
||||
|
||||
if ($th instanceof AppwriteException) {
|
||||
if ($function->getAttribute('logging')) {
|
||||
Authorization::skip(fn () => $dbForProject->createDocument('executions', $execution));
|
||||
}
|
||||
throw $th;
|
||||
}
|
||||
} finally {
|
||||
|
|
|
|||
Loading…
Reference in a new issue