1
0
Fork 0
mirror of synced 2024-06-26 18:20:43 +12:00

Minor patch

This commit is contained in:
Eldad Fux 2021-01-20 06:49:00 +02:00
parent 26faaae5fc
commit d908606509

View file

@ -313,8 +313,8 @@ class FunctionsV1
'time' => 0,
]);
if(false === $execution) {
throw new Exception('Failed to create execution');
if(false === $execution || ($execution instanceof Document && $execution->isEmpty())) {
throw new Exception('Failed to create or read execution');
}
Authorization::reset();