mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2025-06-18 10:06:26 +00:00
Fix schema responses not matching tests
This commit is contained in:
@ -14,3 +14,11 @@ type Sort struct {
|
||||
Field string `json:"field"`
|
||||
Direction string `json:"direction"`
|
||||
}
|
||||
|
||||
// TableName overrides the table name used by gorm
|
||||
func (p *PageInfo) GetSort(def Sort) []Sort {
|
||||
if p.Sort == nil {
|
||||
return []Sort{def}
|
||||
}
|
||||
return p.Sort
|
||||
}
|
||||
|
Reference in New Issue
Block a user