From 7cfa003510b63175c9c8f8efce37c6f35119d041 Mon Sep 17 00:00:00 2001 From: James <370036720@qq.com> Date: Tue, 10 Sep 2024 10:35:07 +0800 Subject: [PATCH] remove duplicated method (#113) --- builder/store/database/repository.go | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/builder/store/database/repository.go b/builder/store/database/repository.go index 6362d474..a48a7937 100644 --- a/builder/store/database/repository.go +++ b/builder/store/database/repository.go @@ -315,17 +315,6 @@ func (s *RepoStore) Tags(ctx context.Context, repoID int64) (tags []Tag, err err err = query.Scan(ctx, &tags) return } -func (s *RepoStore) TagsWithCategory(ctx context.Context, repoID int64, category string) (tags []Tag, err error) { - query := s.db.Operator.Core.NewSelect(). - ColumnExpr("tags.*"). - Model(&RepositoryTag{}). - Join("JOIN tags ON repository_tag.tag_id = tags.id"). - Where("repository_tag.repository_id = ?", repoID). - Where("repository_tag.count > 0"). - Where("tags.category = ?", category) - err = query.Scan(ctx, &tags) - return -} func (s *RepoStore) TagsWithCategory(ctx context.Context, repoID int64, category string) (tags []Tag, err error) { query := s.db.Operator.Core.NewSelect().