chore: create doc

This commit is contained in:
loks0n 2024-05-20 11:46:41 +01:00
parent 863a2ce0a9
commit b3c00c4d32
2 changed files with 6 additions and 0 deletions

View file

@ -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 {

View file

@ -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 {