Skip to content

Commit

Permalink
wallet transfer field added
Browse files Browse the repository at this point in the history
  • Loading branch information
hafijul233 committed Jan 14, 2025
1 parent b772708 commit cc37e2f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Http/Resources/WalletTransferCollection.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public function toArray($request)
'status' => $walletTransfer->status ?? null,
'created_at' => $walletTransfer->created_at ?? null,
'updated_at' => $walletTransfer->updated_at ?? null,
];
] + $walletTransfer->commonAttributes();

$data['amount_formatted'] = currency($data['amount'], $data['currency'])->format();
$data['converted_amount_formatted'] = currency($data['converted_amount'], $data['converted_currency'])->format();
Expand Down
2 changes: 1 addition & 1 deletion src/Http/Resources/WalletTransferResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public function toArray($request)
'created_at' => $this->created_at ?? null,
'updated_at' => $this->updated_at ?? null,
'timeline' => $this->timeline ?? [],
];
] + $this->commonAttributes();

$data['amount_formatted'] = currency($data['amount'], $data['currency'])->format();
$data['converted_amount_formatted'] = currency($data['converted_amount'], $data['converted_currency'])->format();
Expand Down

0 comments on commit cc37e2f

Please sign in to comment.