Skip to content

Commit

Permalink
fix tag not found error
Browse files Browse the repository at this point in the history
  • Loading branch information
aatarasoff committed Dec 7, 2023
1 parent c15a044 commit c02c2fb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions internal/server/metadata.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@ func (m MetadataServer) GetMetadata(ctx context.Context, request *v1.GetMetadata
return nil, err
}

if tagId == "" {
return nil, errors.New("module tag not found")
}

tagMeta, err := m.metadataRepository.GetTagMetaByTagId(ctx, tagId)
if err != nil {
m.logger.Infof("error getting tag meta: %v", err)
Expand Down

0 comments on commit c02c2fb

Please sign in to comment.