修复翻页查询问题

This commit is contained in:
2025-04-30 10:43:30 +08:00
parent f2ea7b152a
commit 64084f5303
5 changed files with 26 additions and 20 deletions

View File

@@ -68,9 +68,7 @@ func ListChannels(c *fiber.Ctx) error {
if len(channels) < req.GetLimit() {
total = int64(len(channels) + req.GetOffset())
} else {
total, err = q.Channel.Debug().
Where(cond).
Count()
total, err = q.Channel.Where(cond).Count()
if err != nil {
return err
}