diff --git a/src/api/src/domain/Yoma.Core.Domain/Entity/Models/UserProfile.cs b/src/api/src/domain/Yoma.Core.Domain/Entity/Models/UserProfile.cs index 6aaf0c78e..8f49d02e0 100644 --- a/src/api/src/domain/Yoma.Core.Domain/Entity/Models/UserProfile.cs +++ b/src/api/src/domain/Yoma.Core.Domain/Entity/Models/UserProfile.cs @@ -49,7 +49,5 @@ public class UserProfile public int OpportunityCountCompleted { get; set; } public int OpportunityCountRejected { get; set; } - - public Dictionary CredentialCounts { get; set; } } } diff --git a/src/api/src/domain/Yoma.Core.Domain/Entity/Services/UserProfileService.cs b/src/api/src/domain/Yoma.Core.Domain/Entity/Services/UserProfileService.cs index 8d2f6c9a5..388c8d254 100644 --- a/src/api/src/domain/Yoma.Core.Domain/Entity/Services/UserProfileService.cs +++ b/src/api/src/domain/Yoma.Core.Domain/Entity/Services/UserProfileService.cs @@ -211,14 +211,6 @@ private async Task ToProfile(User user) filter.VerificationStatuses = [VerificationStatus.Rejected]; result.OpportunityCountRejected = _myOpportunityService.Search(filter).TotalCount ?? default; - var filterSSI = new SSIWalletFilter { TotalCountOnly = true }; - result.CredentialCounts = []; - foreach (var schemaType in Enum.GetValues()) - { - filterSSI.SchemaType = schemaType; - result.CredentialCounts.Add(schemaType, (await _sSIWalletService.SearchUserCredentials(filterSSI)).TotalCount ?? default); - } - return result; } #endregion