mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2026-01-07 14:41:20 +00:00
Various fixes and checks.
This commit is contained in:
@@ -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
|
||||
*
|
||||
|
||||
@@ -69,6 +69,13 @@ interface ImportJobRepositoryInterface
|
||||
*/
|
||||
public function create(string $importProvider): ImportJob;
|
||||
|
||||
/**
|
||||
* @param int $jobId
|
||||
*
|
||||
* @return ImportJob|null
|
||||
*/
|
||||
public function find(int $jobId): ?ImportJob;
|
||||
|
||||
/**
|
||||
* @param string $key
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user