Various fixes and checks.

This commit is contained in:
James Cole
2018-12-21 10:11:18 +01:00
parent 78cb6da21a
commit 4f5d8f830e
8 changed files with 83 additions and 8 deletions

View File

@@ -154,6 +154,16 @@ class ImportJobRepository implements ImportJobRepositoryInterface
throw new FireflyException('Could not create an import job with a unique key after 30 tries.');
}
/**
* @param int $jobId
*
* @return ImportJob|null
*/
public function find(int $jobId): ?ImportJob
{
return $this->user->importJobs()->find($jobId);
}
/**
* @param string $key
*