diff --git a/app/Services/EventCalendarService.php b/app/Services/EventCalendarService.php index bedde52..1bd0d8b 100644 --- a/app/Services/EventCalendarService.php +++ b/app/Services/EventCalendarService.php @@ -125,6 +125,8 @@ class EventCalendarService extends BaseService $oldValues = $model->toArray(); $end_time = get_datetime('datetime', strtotime($data['end_time'])); + $this->validateTime($data['pattern_id'], $end_time, $id); + $update = [ 'pattern_id' => $data['pattern_id'], 'end_time' => $end_time,