Add missing API endpoints.

This commit is contained in:
James Cole
2020-07-31 06:19:48 +02:00
parent 93856a3c57
commit eabda85b1e
8 changed files with 64 additions and 27 deletions

View File

@@ -121,4 +121,14 @@ class JournalAPIRepository implements JournalAPIRepositoryInterface
{
$this->user = $user;
}
/**
* @inheritDoc
*/
public function getJournalLinks(TransactionJournal $journal): Collection
{
$collection = $journal->destJournalLinks()->get();
return $journal->sourceJournalLinks()->get()->merge($collection);
}
}