修复翻页查询问题
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user