feat(search): align article result payloads
This commit is contained in:
@@ -203,7 +203,10 @@ func reindexContacts(ctx context.Context, engine search.SearchEngine, db *gorm.D
|
||||
var lastID uint
|
||||
for {
|
||||
var rows []model.Contact
|
||||
q := db.WithContext(ctx).Where("id > ?", lastID).Order("id ASC").Limit(batchSize)
|
||||
q := db.WithContext(ctx).
|
||||
Preload("Portal").
|
||||
Preload("Category").
|
||||
Where("id > ?", lastID).Order("id ASC").Limit(batchSize)
|
||||
if accountID != 0 {
|
||||
q = q.Where("account_id = ?", accountID)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user