mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2026-01-07 14:41:20 +00:00
Build import job API endpoint.
This commit is contained in:
@@ -170,6 +170,16 @@ class ImportJobRepository implements ImportJobRepositoryInterface
|
||||
return $result;
|
||||
}
|
||||
|
||||
/**
|
||||
* Return all import jobs.
|
||||
*
|
||||
* @return Collection
|
||||
*/
|
||||
public function get(): Collection
|
||||
{
|
||||
return $this->user->importJobs()->get();
|
||||
}
|
||||
|
||||
/**
|
||||
* Return all attachments for job.
|
||||
*
|
||||
|
||||
@@ -35,7 +35,6 @@ use Symfony\Component\HttpFoundation\File\UploadedFile;
|
||||
*/
|
||||
interface ImportJobRepositoryInterface
|
||||
{
|
||||
|
||||
/**
|
||||
* Add message to job.
|
||||
*
|
||||
@@ -77,6 +76,13 @@ interface ImportJobRepositoryInterface
|
||||
*/
|
||||
public function findByKey(string $key): ?ImportJob;
|
||||
|
||||
/**
|
||||
* Return all import jobs.
|
||||
*
|
||||
* @return Collection
|
||||
*/
|
||||
public function get(): Collection;
|
||||
|
||||
/**
|
||||
* Return all attachments for job.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user