mirror of
https://github.com/Frooodle/Stirling-PDF.git
synced 2025-09-08 17:51:20 +02:00
🤖 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:
parent
963b4ee69d
commit
c50aadeb35
@ -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));
|
||||||
|
Loading…
Reference in New Issue
Block a user