Browse Source

peak hype

master
gsd 6 months ago
parent
commit
f88eb8f938
  1. 2
      src/main/java/app/controllers/StatsController.java

2
src/main/java/app/controllers/StatsController.java

@ -63,7 +63,7 @@ public class StatsController {
public ResponseEntity<List<OnlineUpdater.StatsOfPeakOfDay>> GetPeakOfDays(
@RequestParam(required = false, defaultValue = "7") Integer limit,
@RequestParam(required = false, defaultValue = "%") String server_id) {
if (limit > 31) return new ResponseEntity<>(HttpStatus.NOT_ACCEPTABLE);
if (limit > 366) return new ResponseEntity<>(HttpStatus.NOT_ACCEPTABLE);
return new ResponseEntity<>(onlineUpdater.getPeakOfDays(server_id, limit), HttpStatus.OK);
}

Loading…
Cancel
Save