Skip to content

Commit

Permalink
style: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
trim21 committed Oct 3, 2024
1 parent 58c3470 commit 2b0fb68
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions internal/collections/infra/mysql_repo.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ func (r mysqlRepo) UpdateOrCreateSubjectCollection(
return r.updateOrCreateSubjectCollection(ctx, userID, subject, at, ip, update, s)
}

//nolint:funlen
func (r mysqlRepo) updateOrCreateSubjectCollection(
ctx context.Context,
userID model.UserID,
Expand Down Expand Up @@ -267,9 +268,12 @@ func (r mysqlRepo) updateUserTags(ctx context.Context,
})
}

func (r mysqlRepo) reCountSubjectTags(ctx context.Context, tx *query.Query, s model.Subject, relatedTags []string) error {
//nolint:funlen
func (r mysqlRepo) reCountSubjectTags(ctx context.Context, tx *query.Query,
s model.Subject, relatedTags []string) error {
tagIndexs, err := tx.WithContext(ctx).TagIndex.Select().
Where(tx.TagIndex.Cat.Eq(model.TagCatSubject), tx.TagIndex.Name.In(relatedTags...), tx.TagIndex.Type.Eq(s.TypeID)).Find()
Where(tx.TagIndex.Cat.Eq(model.TagCatSubject), tx.TagIndex.Name.In(relatedTags...),
tx.TagIndex.Type.Eq(s.TypeID)).Find()
if err != nil {
return err
}
Expand Down

0 comments on commit 2b0fb68

Please sign in to comment.