timestamp null
parent
4745c1dff4
commit
7281a51b22
|
|
@ -21,7 +21,7 @@ class PlantHarvestResource extends JsonResource
|
||||||
'director' => $this->director,
|
'director' => $this->director,
|
||||||
'area' => $this->area,
|
'area' => $this->area,
|
||||||
'output' => $this->output,
|
'output' => $this->output,
|
||||||
'harvest_at' => $this->harvest_at ? $this->harvest_at->timestamp : '',
|
'harvest_at' => $this->harvest_at ? $this->harvest_at->timestamp : null,
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -19,8 +19,8 @@ class RegionPlantResource extends JsonResource
|
||||||
'plant_name' => $this->plant_name,
|
'plant_name' => $this->plant_name,
|
||||||
'director' => $this->director,
|
'director' => $this->director,
|
||||||
'area' => $this->area,
|
'area' => $this->area,
|
||||||
'start_at' => $this->start_at ? $this->start_at->timestamp : '',
|
'start_at' => $this->start_at ? $this->start_at->timestamp : null,
|
||||||
'end_at' => $this->end_at ? $this->end_at->timestamp : '',
|
'end_at' => $this->end_at ? $this->end_at->timestamp : null,
|
||||||
'plant_state' => $this->plant_state,
|
'plant_state' => $this->plant_state,
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue