mirror of
https://github.com/Alvin-Zilverstand/nginx-proxy-manager.git
synced 2026-11-26 08:03:06 +01:00
Fix schema responses not matching tests
This commit is contained in:
14 files changed
+28
-13
No files matched your search
@@ -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