feat(search): align conversation identity search

This commit is contained in:
2026-06-07 08:05:12 +08:00
parent 9a7e455e1c
commit 450c8673d8
9 changed files with 171 additions and 42 deletions
+1 -1
View File
@@ -139,7 +139,7 @@ func reindexConversations(ctx context.Context, engine search.SearchEngine, db *g
var lastID uint
for {
var rows []model.Conversation
q := db.WithContext(ctx).Where("id > ?", lastID).Order("id ASC").Limit(batchSize)
q := db.WithContext(ctx).Preload("Contact").Where("id > ?", lastID).Order("id ASC").Limit(batchSize)
if accountID != 0 {
q = q.Where("account_id = ?", accountID)
}