Skip to content

Commit

Permalink
remove duplicated method (#113)
Browse files Browse the repository at this point in the history
  • Loading branch information
ganisback authored Sep 10, 2024
1 parent d705c6a commit 7cfa003
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions builder/store/database/repository.go
Original file line number Diff line number Diff line change
Expand Up @@ -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().
Expand Down

0 comments on commit 7cfa003

Please sign in to comment.