From e6042e3e8e6b9e4cfbe4dbbc1643e3935fb78212 Mon Sep 17 00:00:00 2001 From: erio Date: Tue, 7 Apr 2026 13:47:12 +0800 Subject: [PATCH] fix(channel): add missing features column to List query The paginated List query was selecting 9 columns but scanning 10 fields, missing c.features. GetByID and ListAll already included it correctly. --- backend/cmd/server/VERSION | 2 +- backend/internal/repository/channel_repo.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/cmd/server/VERSION b/backend/cmd/server/VERSION index 224d731043..8b4a475023 100644 --- a/backend/cmd/server/VERSION +++ b/backend/cmd/server/VERSION @@ -1 +1 @@ -0.1.108.72 +0.1.108.73 diff --git a/backend/internal/repository/channel_repo.go b/backend/internal/repository/channel_repo.go index ab0032b46d..baad31f7b3 100644 --- a/backend/internal/repository/channel_repo.go +++ b/backend/internal/repository/channel_repo.go @@ -187,7 +187,7 @@ func (r *channelRepository) List(ctx context.Context, params pagination.Paginati // 查询 channel 列表 dataQuery := fmt.Sprintf( - `SELECT c.id, c.name, c.description, c.status, c.model_mapping, c.billing_model_source, c.restrict_models, c.created_at, c.updated_at + `SELECT c.id, c.name, c.description, c.status, c.model_mapping, c.billing_model_source, c.restrict_models, c.features, c.created_at, c.updated_at FROM channels c WHERE %s ORDER BY c.id ASC LIMIT $%d OFFSET $%d`, whereClause, argIdx, argIdx+1, )