mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 15:35:15 +00:00
Update API to match new end points.
This commit is contained in:
@@ -142,7 +142,7 @@ class MassController extends Controller
|
||||
|
||||
$this->rememberPreviousUri('transactions.mass-edit.uri');
|
||||
|
||||
$transformer = new TransactionTransformer(new ParameterBag);
|
||||
$transformer = new TransactionTransformer(new ParameterBag, $this->repository);
|
||||
/** @var TransactionCollectorInterface $collector */
|
||||
$collector = app(TransactionCollectorInterface::class);
|
||||
$collector->setUser($user);
|
||||
|
@@ -253,7 +253,7 @@ class TransactionController extends Controller
|
||||
$collector->setJournals(new Collection([$journal]));
|
||||
$set = $collector->getTransactions();
|
||||
$transactions = [];
|
||||
$transformer = new TransactionTransformer(new ParameterBag);
|
||||
$transformer = new TransactionTransformer(new ParameterBag, $this->repository);
|
||||
/** @var Transaction $transaction */
|
||||
foreach ($set as $transaction) {
|
||||
$transactions[] = $transformer->transform($transaction);
|
||||
|
Reference in New Issue
Block a user