preserve schedule start date

This commit is contained in:
Yisroel Baum 2026-08-22 21:59:36 +03:00
parent bcbc2e6ba3
commit d9d9869a49
Signed by: yisroelbaum
GPG key ID: 0FA60884F75520A9
4 changed files with 1 additions and 4 deletions

View file

@ -52,7 +52,6 @@ class EloquentScheduleRepository implements ScheduleRepository
);
}
$model->start_date = $dto->startDate->format('Y-m-d');
$model->target_date = $dto->targetDate->format('Y-m-d');
$model->save();

View file

@ -13,7 +13,6 @@ final readonly class RescheduleScheduleDto
public function __construct(
public int $scheduleId,
public User $user,
public DateTimeImmutable $startDate,
public DateTimeImmutable $targetDate,
public array $assignments,
) {}

View file

@ -75,7 +75,6 @@ class RescheduleSchedule
new RescheduleScheduleDto(
scheduleId: $schedule->getId(),
user: $request->user,
startDate: $startDate,
targetDate: $targetDate,
assignments: $assignmentDtos,
),