Update db.go

This commit is contained in:
RedCocoon 2024-11-07 22:06:01 +08:00
parent 703f13b18f
commit 93e125e7ab

View File

@ -61,7 +61,7 @@ func (i *Indexer) Search(ctx context.Context, options *internal.SearchOptions) (
cond = builder.Or(
builder.In("conversation.id", builder.Select("conversation_id").
From("comment").
From("conversation_comment").
Where(builder.And(
builder.Eq{"type": conversation_model.CommentTypeComment},
builder.In("conversation_id", subQuery),