IMPROVE input validation
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user