jnfrati 4 лет назад
Родитель
Сommit
95700ba8da
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      api/server/handlers/project/list_tags.go

+ 1 - 1
api/server/handlers/project/list_tags.go

@@ -27,7 +27,7 @@ func NewGetTagsHandler(
 
 func (p *GetTagsHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
 	proj, _ := r.Context().Value(types.ProjectScope).(*models.Project)
-	tags, err := p.Config().Repo.Tag().ListTagsByProjectId(proj.ID)
+	tags, err := p.Repo().Tag().ListTagsByProjectId(proj.ID)
 
 	if err != nil {
 		p.HandleAPIError(w, r, apierrors.NewErrInternal(err))