Some last minute updates.

This commit is contained in:
James Cole
2018-07-02 20:17:50 +02:00
parent 2e67bd3b78
commit 54afc6ca8c
7 changed files with 64 additions and 121 deletions

View File

@@ -127,7 +127,7 @@ class JobStatusController extends Controller
public function start(ImportJob $importJob): JsonResponse
{
// catch impossible status:
$allowed = ['ready_to_run', 'need_job_config', 'error']; // todo remove error
$allowed = ['ready_to_run', 'need_job_config'];
if (null !== $importJob && !\in_array($importJob->status, $allowed, true)) {
Log::error('Job is not ready.');