Fix some lines.

This commit is contained in:
James Cole 2021-11-26 06:40:14 +01:00
parent b1e453438e
commit 89fbf0869a
2 changed files with 2 additions and 10 deletions

View File

@ -143,11 +143,6 @@ class UpgradeDatabase extends Command
$result = Artisan::output();
echo $result;
// $this->line('Now installing OAuth2 keys...');
// Artisan::call('passport:install');
// $result = Artisan::output();
// echo $result;
$this->line('Done!');
}
}

View File

@ -397,11 +397,8 @@ class LinkTypeRepository implements LinkTypeRepositoryInterface
{
/** @var TransactionJournalLink $link */
$link = TransactionJournalLink::find($linkId);
if (null !== $link) {
if ($link->source->user->id === $this->user->id) {
$this->switchLink($link);
}
if (null !== $link && $link->source->user->id === $this->user->id) {
$this->switchLink($link);
}
return true;