mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-15 08:35:00 +00:00
Fix method.
This commit is contained in:
@@ -84,7 +84,7 @@ class DownloadExchangeRates implements ShouldQueue
|
||||
public function handle(): void
|
||||
{
|
||||
Log::debug('Now in handle()');
|
||||
$currencies = $this->repository->get();
|
||||
$currencies = $this->repository->getCompleteSet();
|
||||
|
||||
/** @var TransactionCurrency $currency */
|
||||
foreach ($currencies as $currency) {
|
||||
|
@@ -201,6 +201,17 @@ class CurrencyRepository implements CurrencyRepositoryInterface
|
||||
return $all;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the complete set of transactions but needs
|
||||
* no user object.
|
||||
*
|
||||
* @return Collection
|
||||
*/
|
||||
public function getCompleteSet(): Collection
|
||||
{
|
||||
return TransactionCurrency::orderBy('code', 'ASC')->get();
|
||||
}
|
||||
|
||||
/**
|
||||
* @param TransactionCurrency $currency
|
||||
*
|
||||
|
@@ -37,6 +37,15 @@ use Illuminate\Support\Collection;
|
||||
*/
|
||||
interface CurrencyRepositoryInterface
|
||||
{
|
||||
|
||||
/**
|
||||
* Returns the complete set of transactions but needs
|
||||
* no user object.
|
||||
*
|
||||
* @return Collection
|
||||
*/
|
||||
public function getCompleteSet(): Collection;
|
||||
|
||||
/**
|
||||
* @param TransactionCurrency $currency
|
||||
*
|
||||
|
Reference in New Issue
Block a user