feat(crm): align nested conversation payloads

This commit is contained in:
2026-06-05 04:05:01 +08:00
parent 9d0e8d40c0
commit fb775b76f6
6 changed files with 74 additions and 9 deletions
+1 -1
View File
@@ -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
}