diff --git a/backend/scripts/promote_grade10_candidate.php b/backend/scripts/promote_grade10_candidate.php index 15595a9..1c2a4fe 100644 --- a/backend/scripts/promote_grade10_candidate.php +++ b/backend/scripts/promote_grade10_candidate.php @@ -133,7 +133,7 @@ $pdo = Database::getConnection(); $pdo->beginTransaction(); try { foreach ($plan as $row) { - $source = $candidateRoot . '/' . $row['file']; + $source = $intakeRoot . '/' . $row['file']; $destination = $projectRoot . '/backend/storage/curriculum/' . $row['storage_key']; if (!is_dir(dirname($destination)) && !mkdir(dirname($destination), 0750, true) && !is_dir(dirname($destination))) { throw new RuntimeException('Unable to create staging directory.');