feat(crm): align nested conversation payloads
This commit is contained in:
@@ -203,7 +203,7 @@ func (r *ConversationRepo) FindByContactIDs(ctx context.Context, accountID uint,
|
||||
|
||||
err := r.db.WithContext(ctx).
|
||||
Where("account_id = ? AND contact_id IN ?", accountID, contactIDs).
|
||||
Offset(offset).Limit(limit).Order("id DESC").
|
||||
Offset(offset).Limit(limit).Order("last_activity_at DESC").Order("id DESC").
|
||||
Find(&conversations).Error
|
||||
return conversations, total, err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user