IMPROVE input validation

This commit is contained in:
2025-05-15 10:29:00 +02:00
committed by dylandefaoite
parent e2c4b81cad
commit bce8a5e1d6
5 changed files with 45 additions and 33 deletions

View File

@@ -22,7 +22,7 @@ public class DownloadService {
}
public Resource downloadInput(String uuid) {
Job job = jobService.get(uuid);
Job job = jobService.getJob(uuid);
if (job == null) {
throw new JobNotFound("Job doesn't exist");
@@ -33,7 +33,7 @@ public class DownloadService {
}
public Resource downloadOutput(String uuid) {
Job job = jobService.get(uuid);
Job job = jobService.getJob(uuid);
if (job == null) {
throw new JobNotFound("Job doesn't exist");