Small tweaks

This commit is contained in:
Jamie Curnow committed 2023-07-19 11:52:47 +10:00
1 parent ed609f0bec
commit 824a22efad
5 files changed
+6 -29

No files matched your search

+1 -1
View File
@@ -15,7 +15,7 @@ type Sort struct {
Direction string `json:"direction"`
}
// TableName overrides the table name used by gorm
// GetSort ...
func (p *PageInfo) GetSort(def Sort) []Sort {
if p.Sort == nil {
return []Sort{def}