Skip to content

Commit

Permalink
Tweak json for sortTime
Browse files Browse the repository at this point in the history
  • Loading branch information
kian99 committed Aug 14, 2023
1 parent 3752677 commit 26fbb8a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion api/params/params.go
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ type FindAuditEventsRequest struct {

// SortTime will sort by most recent (time descending) when true.
// When false no explicit ordering will be applied.
SortTime bool `json:"sort,omitempty"`
SortTime bool `json:"sortTime,omitempty"`
}

// A ListControllersResponse is the response that is sent in a
Expand Down
2 changes: 1 addition & 1 deletion internal/db/audit.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ type AuditLogFilter struct {

// SortTime will sort by most recent first (time descending) when true.
// When false no explicit ordering will be applied.
SortTime bool `json:"sort,omitempty"`
SortTime bool `json:"sortTime,omitempty"`
}

// ForEachAuditLogEntry iterates through all audit log entries that match
Expand Down

0 comments on commit 26fbb8a

Please sign in to comment.