Skip to content

Commit

Permalink
Fix wrong article variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
System-Glitch committed Jan 13, 2025
1 parent bceaf69 commit 6dfde6a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions service/article/article.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,11 @@ func (s *Service) Index(ctx context.Context, request *filter.Request) (*database
}

func (s *Service) GetBySlug(ctx context.Context, slug string) (*dto.Article, error) {
user, err := s.Repository.GetBySlug(ctx, slug)
article, err := s.Repository.GetBySlug(ctx, slug)
if err != nil {
return nil, errors.New(err)
}
return typeutil.MustConvert[*dto.Article](user), nil
return typeutil.MustConvert[*dto.Article](article), nil
}

func (s *Service) Create(ctx context.Context, createDTO *dto.CreateArticle) error {
Expand Down

0 comments on commit 6dfde6a

Please sign in to comment.