Merge remote-tracking branch 'origin/45-finalize-details-page' into 45-finalize-details-page

This commit is contained in:
J-Klinke 2024-07-06 18:06:38 +02:00
commit 442c532e85

View File

@ -70,7 +70,7 @@ public class DatasetController {
if (datasetService.getDatasetById(id) == null) { if (datasetService.getDatasetById(id) == null) {
return new ResponseEntity<>(HttpStatus.NOT_FOUND); return new ResponseEntity<>(HttpStatus.NOT_FOUND);
} }
if (!(stars > 0 && stars < 6)) { if (!(stars >= 0 && stars < 6)) {
return new ResponseEntity<>(HttpStatus.BAD_REQUEST); return new ResponseEntity<>(HttpStatus.BAD_REQUEST);
} }
datasetService.voteDataset(id, stars); datasetService.voteDataset(id, stars);