Update ScheduleRepository.php