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

Better check + CI test

This commit is contained in:
Eldad Fux 2021-01-19 18:32:53 +02:00
parent 6b2b50c77e
commit 3f833b71a9
2 changed files with 3 additions and 2 deletions

View file

@ -34,6 +34,7 @@ install:
script:
- docker ps
- docker stop appwrite-maintenance
- docker-compose logs appwrite
- docker-compose exec appwrite doctor
- docker-compose exec appwrite vars

View file

@ -278,8 +278,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();