mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange-2.0.git
synced 2026-08-22 05:53:58 +00:00
fix bill seeder
This commit is contained in:
@@ -16,11 +16,8 @@ class TransactionResource extends JsonResource
|
||||
*/
|
||||
public function toArray($request)
|
||||
{
|
||||
$booking = $this->type === TransactionType::BILL ? $this->owner->owner : $this->booking;
|
||||
if(!$booking){
|
||||
dd($this->type);
|
||||
dd($this->owner);
|
||||
}
|
||||
$booking = (int) $this->type === TransactionType::BILL ? $this->owner->owner : $this->booking;
|
||||
|
||||
return [
|
||||
'id' => $this->id,
|
||||
'booking' => new BookingResource($booking),
|
||||
|
||||
Reference in New Issue
Block a user