Fix logging behaviour; new tests

This commit is contained in:
Matej Bačo
2024-09-05 13:23:24 +00:00
parent f9992c2f64
commit 4ae5e82d6f
3 changed files with 145 additions and 7 deletions
+1 -3
View File
@@ -260,9 +260,7 @@ class Functions extends Action
'search' => implode(' ', [$function->getId(), $executionId]),
]);
if ($function->getAttribute('logging')) {
$execution = $dbForProject->createDocument('executions', $execution);
}
$execution = $dbForProject->createDocument('executions', $execution);
if ($execution->isEmpty()) {
throw new Exception('Failed to create execution');