🤖 format everything with pre-commit by stirlingbot (#4185)

Auto-generated by [create-pull-request][1] with **stirlingbot**

[1]: https://github.com/peter-evans/create-pull-request

Signed-off-by: stirlingbot[bot] <stirlingbot[bot]@users.noreply.github.com>
Co-authored-by: stirlingbot[bot] <195170888+stirlingbot[bot]@users.noreply.github.com>
This commit is contained in:
stirlingbot[bot] 2025-09-04 12:56:02 +01:00 committed by GitHub
parent 963b4ee69d
commit c50aadeb35
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));