Skip to content

Commit

Permalink
#13 Ensure the datasetId isn't blank
Browse files Browse the repository at this point in the history
  • Loading branch information
chadlwilson committed Nov 10, 2021
1 parent dea26ff commit 6adf318
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class DatasetRecRunController(
}

@Get
fun get(@QueryValue("datasetId") datasetId: String): Flux<RunApiModel> {
fun get(@NotBlank @QueryValue("datasetId") datasetId: String): Flux<RunApiModel> {
logger.info { "Find runs for [$datasetId]" }
return runRepository.findTop10ByDatasetIdOrderByCompletedTimeDesc(datasetId).map { RunApiModel(it) }
}
Expand Down

0 comments on commit 6adf318

Please sign in to comment.