📁 pre-commit

Signed-off-by: stirlingbot[bot] <stirlingbot[bot]@users.noreply.github.com>
This commit is contained in:
stirlingbot[bot] 2025-08-21 09:34:46 +00:00 committed by GitHub
parent 409cada93a
commit b1056766d8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -116,8 +116,12 @@ public class AuditDashboardController {
@GetMapping("/stats") @GetMapping("/stats")
@Operation(summary = "Get audit statistics for the last N days") @Operation(summary = "Get audit statistics for the last N days")
public AuditStatsResponse getAuditStats( public AuditStatsResponse getAuditStats(
@Schema(description = "Number of days to look back for audit events", example = "7", required = true) @Schema(
@RequestParam(value = "days", defaultValue = "7") int days) { description = "Number of days to look back for audit events",
example = "7",
required = true)
@RequestParam(value = "days", defaultValue = "7")
int days) {
// Get events from the last X days // Get events from the last X days
Instant startDate = Instant.now().minus(java.time.Duration.ofDays(days)); Instant startDate = Instant.now().minus(java.time.Duration.ofDays(days));