Skip to content

Commit

Permalink
Fixed column name for time ordering (#1101)
Browse files Browse the repository at this point in the history
  • Loading branch information
Eisei24 authored Nov 7, 2024
1 parent 1061ac3 commit 3dfebdc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions backend/pkg/api/enums/notifications_enums.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ func (c NotificationMachinesColumn) ToExpr() OrderableSortable {
case NotificationMachineEventType:
return goqu.C("event_type")
case NotificationMachineTimestamp:
return goqu.C("epoch")
return goqu.C("ts")
default:
return nil
}
Expand Down Expand Up @@ -170,7 +170,7 @@ func (c NotificationClientsColumn) ToExpr() OrderableSortable {
case NotificationClientName:
return goqu.C("client")
case NotificationClientTimestamp:
return goqu.C("epoch")
return goqu.C("ts")
default:
return nil
}
Expand Down Expand Up @@ -256,7 +256,7 @@ func (NotificationNetworksColumn) NewFromString(s string) NotificationNetworksCo
func (c NotificationNetworksColumn) ToExpr() OrderableSortable {
switch c {
case NotificationNetworkTimestamp:
return goqu.C("epoch")
return goqu.C("ts")
case NotificationNetworkNetwork:
return goqu.C("network")
case NotificationNetworkEventType:
Expand Down

0 comments on commit 3dfebdc

Please sign in to comment.