mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-30 02:26:58 +00:00
Clean up some old code.
This commit is contained in:
@@ -23,7 +23,7 @@ declare(strict_types=1);
|
|||||||
namespace FireflyIII\Http\Requests;
|
namespace FireflyIII\Http\Requests;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Class RuleFormRequest.
|
* Class TestRuleFormRequest.
|
||||||
*
|
*
|
||||||
* @codeCoverageIgnore
|
* @codeCoverageIgnore
|
||||||
*/
|
*/
|
||||||
|
@@ -123,23 +123,6 @@ class YnabRoutine implements RoutineInterface
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// if ('match_accounts' === $this->importJob->stage) {
|
|
||||||
// // $this->repository->setStatus($this->importJob, 'running');
|
|
||||||
// /** @var StageGetBudgetsHandler $handler */
|
|
||||||
// $handler = app(StageGetBudgetsHandler::class);
|
|
||||||
// $handler->setImportJob($this->importJob);
|
|
||||||
// $handler->run();
|
|
||||||
// $this->repository->setStage($this->importJob, 'get_transactions');
|
|
||||||
// }
|
|
||||||
//
|
|
||||||
// if ('get_transactions' === $this->importJob->stage) {
|
|
||||||
// // $this->repository->setStatus($this->importJob, 'running');
|
|
||||||
// /** @var StageGetBudgetsHandler $handler */
|
|
||||||
// $handler = app(StageGetBudgetsHandler::class);
|
|
||||||
// $handler->setImportJob($this->importJob);
|
|
||||||
// $handler->run();
|
|
||||||
// $this->repository->setStage($this->importJob, 'get_transactions');
|
|
||||||
// }
|
|
||||||
throw new FireflyException(sprintf('YNAB import routine cannot handle stage "%s"', $this->importJob->stage));
|
throw new FireflyException(sprintf('YNAB import routine cannot handle stage "%s"', $this->importJob->stage));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -23,6 +23,7 @@ declare(strict_types=1);
|
|||||||
|
|
||||||
namespace FireflyIII\Services\Internal\Support;
|
namespace FireflyIII\Services\Internal\Support;
|
||||||
|
|
||||||
|
use Exception;
|
||||||
use FireflyIII\Factory\BillFactory;
|
use FireflyIII\Factory\BillFactory;
|
||||||
use FireflyIII\Factory\TagFactory;
|
use FireflyIII\Factory\TagFactory;
|
||||||
use FireflyIII\Factory\TransactionJournalMetaFactory;
|
use FireflyIII\Factory\TransactionJournalMetaFactory;
|
||||||
@@ -128,7 +129,11 @@ trait JournalServiceTrait
|
|||||||
}
|
}
|
||||||
$note = $journal->notes()->first();
|
$note = $journal->notes()->first();
|
||||||
if (null !== $note) {
|
if (null !== $note) {
|
||||||
$note->delete();
|
try {
|
||||||
|
$note->delete();
|
||||||
|
} catch (Exception $e) {
|
||||||
|
Log::debug(sprintf('Journal service trait could not delete note: %s', $e->getMessage()));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user