fix timer

This commit is contained in:
omair saleh
2022-03-11 15:24:27 +08:00
parent 0a05a0f980
commit 4ba32b6e9f
+1 -1
View File
@@ -17,7 +17,7 @@ class TransactionResource extends JsonResource
public function toArray($request)
{
$booking = (int)$this->type === TransactionType::BILL ? $this->owner->owner : $this->booking;
$days = $this->updated_at->endOfDay()->addWeekdays($booking->service_id === 1 ? 1 : 3);
$days = $this->updated_at->startOfDay()->addWeekdays($booking->service_id === 1 ? 1 : 3);
return [
'id' => $this->id,