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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user