Skip to content

Commit

Permalink
fix(validtri): change routes to refer to dataStorage
Browse files Browse the repository at this point in the history
  • Loading branch information
DD-Arras committed Dec 2, 2024
1 parent a6993c9 commit 8ca00cb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Controller/Api/ValidationsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ public function readConsole($uid)
$validationDirectory = $this->storage->getDirectory($validation) ;
$filepath = $validationDirectory . '/validator-debug.log';

$content = file_get_contents($filepath, true);
$content = $this->dataStorage->read($filepath);

return new Response(
$content,
Expand Down Expand Up @@ -337,8 +337,8 @@ public function downloadSourceData($uid)
throw new ApiException("Validation has been archived", Response::HTTP_FORBIDDEN);
}

$validationDirectory = $this->storage->getDirectory($validation) ;
$zipFilepath = $validationDirectory . '/' . $validation->getDatasetName() . '.zip';
$uploadDirectory = $validation->getUid() . '/upload/' ;
$zipFilepath = $uploadDirectory . $validation->getDatasetName() . '.zip';
return $this->getDownloadResponse($zipFilepath, $validation->getDatasetName() . "-source.zip");
}

Expand Down

0 comments on commit 8ca00cb

Please sign in to comment.