Clean up some old code.

This commit is contained in:
James Cole
2018-09-06 07:38:51 +02:00
parent 8b65c8b909
commit b855c54e81
3 changed files with 7 additions and 19 deletions

View File

@@ -23,6 +23,7 @@ declare(strict_types=1);
namespace FireflyIII\Services\Internal\Support;
use Exception;
use FireflyIII\Factory\BillFactory;
use FireflyIII\Factory\TagFactory;
use FireflyIII\Factory\TransactionJournalMetaFactory;
@@ -128,7 +129,11 @@ trait JournalServiceTrait
}
$note = $journal->notes()->first();
if (null !== $note) {
$note->delete();
try {
$note->delete();
} catch (Exception $e) {
Log::debug(sprintf('Journal service trait could not delete note: %s', $e->getMessage()));
}
}