mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2025-06-18 18:16:26 +00:00
More unit tests and html coverage report
also fixes a limit bug on listquery
This commit is contained in:
@ -32,8 +32,10 @@ func List(pageInfo model.PageInfo, filters []model.Filter, expand []string) (ent
|
||||
}
|
||||
|
||||
// Get rows
|
||||
dbo = entity.AddOffsetLimitToList(dbo, &pageInfo)
|
||||
dbo = entity.AddOrderToList(dbo, pageInfo.Sort, defaultSort)
|
||||
items := make([]Model, 0)
|
||||
if res := entity.AddOrderToList(dbo, &pageInfo, defaultSort).Find(&items); res.Error != nil {
|
||||
if res := dbo.Find(&items); res.Error != nil {
|
||||
return result, res.Error
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user