|
|
@@ -228,12 +228,12 @@ class DeliveryAppointmentController extends Controller
|
|
|
$available = $total-$result->capacity;
|
|
|
if ($available < $appointment->capacity)$this->success(["isFail"=>true]);
|
|
|
}
|
|
|
- $appointment = $appointment->update([
|
|
|
+ $appointment->update([
|
|
|
"appointment_date" => $selectDate["date"],
|
|
|
"date_period" => $selectDate["time"],
|
|
|
]);
|
|
|
});
|
|
|
- dispatch(new DeliveryAppointmentCheck($appointment->id))->delay(Carbon::parse($appointment->appointment_date." ".(explode("-",DeliveryAppointment::PERIOD[$appointment->date_period])[1]).":00:01"));
|
|
|
+ dispatch(new DeliveryAppointmentCheck($appointment->id))->delay(Carbon::parse($selectDate["date"]." ".(explode("-",DeliveryAppointment::PERIOD[$selectDate["time"]])[1]).":00:01"));
|
|
|
$this->success();
|
|
|
}
|
|
|
|