Fix file copy source path in promote script

This commit is contained in:
Hamza-Ayed
2026-09-10 23:47:46 +03:00
parent 35cb3d34d8
commit 90d4a871d3
@@ -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.');