Skip to content

Commit

Permalink
fix: subjects of indices
Browse files Browse the repository at this point in the history
  • Loading branch information
trim21 committed Jan 30, 2024
1 parent e100525 commit bacc276
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/index/mysql_repository.go
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ func (r mysqlRepo) ListSubjects(
) ([]Subject, error) {
q := r.q.IndexSubject.WithContext(ctx).Joins(r.q.IndexSubject.Subject).
Preload(r.q.IndexSubject.Subject.Fields).
Where(r.q.IndexSubject.IndexID.Eq(id)).
Where(r.q.IndexSubject.IndexID.Eq(id), r.q.IndexSubject.Cat.Eq(0)).
Order(r.q.IndexSubject.Order).
Limit(limit).Offset(offset)
if subjectType != 0 {
Expand Down

0 comments on commit bacc276

Please # to comment.