feat(search): align conversation identity search
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user