diff --git a/server/handlers/user.go b/server/handlers/user.go index d16ef34..7e50284 100644 --- a/server/handlers/user.go +++ b/server/handlers/user.go @@ -89,7 +89,7 @@ func UserRooms(ctx *gin.Context) { } ctx.JSON(http.StatusOK, model.NewApiDataResp(gin.H{ - "total": db.GetAllRooms(scopes...), + "total": db.GetAllRoomsCount(scopes...), "list": genRoomListResp(append(scopes, db.Paginate(page, pageSize))...), })) }