Skip to content

Commit

Permalink
Removed credential counts from user profile (#1027)
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianwium authored Aug 19, 2024
1 parent 334c73e commit 2b1b8af
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,5 @@ public class UserProfile
public int OpportunityCountCompleted { get; set; }

public int OpportunityCountRejected { get; set; }

public Dictionary<SchemaType, int> CredentialCounts { get; set; }
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -211,14 +211,6 @@ private async Task<UserProfile> 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<SchemaType>())
{
filterSSI.SchemaType = schemaType;
result.CredentialCounts.Add(schemaType, (await _sSIWalletService.SearchUserCredentials(filterSSI)).TotalCount ?? default);
}

return result;
}
#endregion
Expand Down

0 comments on commit 2b1b8af

Please sign in to comment.