mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2024-12-01 13:09:35 -06:00
Merge pull request #3098 from GeoffreyFrogeye/link_type_id
API: Add link_type_id when reading TransactionLink
This commit is contained in:
commit
b77b3f0c21
@ -60,13 +60,14 @@ class TransactionLinkTransformer extends AbstractTransformer
|
|||||||
{
|
{
|
||||||
$notes = $this->repository->getLinkNoteText($link);
|
$notes = $this->repository->getLinkNoteText($link);
|
||||||
$data = [
|
$data = [
|
||||||
'id' => (int)$link->id,
|
'id' => (int)$link->id,
|
||||||
'created_at' => $link->created_at->toAtomString(),
|
'created_at' => $link->created_at->toAtomString(),
|
||||||
'updated_at' => $link->updated_at->toAtomString(),
|
'updated_at' => $link->updated_at->toAtomString(),
|
||||||
'inward_id' => $link->source_id,
|
'inward_id' => $link->source_id,
|
||||||
'outward_id' => $link->destination_id,
|
'outward_id' => $link->destination_id,
|
||||||
'notes' => '' === $notes ? null : $notes,
|
'link_type_id' => $link->link_type_id,
|
||||||
'links' => [
|
'notes' => '' === $notes ? null : $notes,
|
||||||
|
'links' => [
|
||||||
[
|
[
|
||||||
'rel' => 'self',
|
'rel' => 'self',
|
||||||
'uri' => '/transaction_links/' . $link->id,
|
'uri' => '/transaction_links/' . $link->id,
|
||||||
|
Loading…
Reference in New Issue
Block a user