Merge branch '48-make-rating-of-0-possible' into '45-finalize-details-page'

Resolve "make rating of 0 possible"

See merge request padas/24ss-5430-web-and-data-eng/gruppe-3/datadash!48
This commit is contained in:
Erik Foris
2024-07-06 18:04:02 +02:00

View File

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