mirror of
https://github.com/fleetdm/fleet
synced 2026-05-23 17:08:53 +00:00
Fix column name when detecting order by (#3978)
This commit is contained in:
parent
a63c549f07
commit
6319812984
1 changed files with 1 additions and 1 deletions
|
|
@ -323,7 +323,7 @@ func selectSoftwareSQL(hostID *uint, opts fleet.SoftwareListOptions) (string, []
|
|||
)
|
||||
subSelectListOpts := opts.ListOptions
|
||||
switch subSelectListOpts.OrderKey {
|
||||
case "hosts_counts", "counts_updated_at":
|
||||
case "hosts_count", "counts_updated_at":
|
||||
// all good, known columns, so we sort
|
||||
subSelectCounts = appendListOptionsToSelect(subSelectCounts, opts.ListOptions)
|
||||
default:
|
||||
|
|
|
|||
Loading…
Reference in a new issue