mirror of
https://github.com/Alvin-Zilverstand/nginx-proxy-manager.git
synced 2026-11-25 23:53:07 +01:00
More unit tests and html coverage report
also fixes a limit bug on listquery
This commit is contained in:
19 files changed
+479
-183
No files matched your search
@@ -37,8 +37,10 @@ func List(pageInfo model.PageInfo, filters []model.Filter) (entity.ListResponse,
|
||||
}
|
||||
|
||||
// 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