Skip to content

Commit

Permalink
Add validation error when multiple profiles found on Provider Profile
Browse files Browse the repository at this point in the history
  • Loading branch information
bcgov-hl committed Jun 11, 2024
1 parent 421f0df commit f681a86
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 10 deletions.
6 changes: 6 additions & 0 deletions OFM.Infrastructure.WebAPI/Handlers/ProviderProfileHandlers.cs
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,12 @@ public static async Task<Results<BadRequest<string>, NotFound<string>, Unauthori

return TypedResults.NotFound($"User not found.");
}
if (currentValue?.AsArray().Count > 1)
{
logger.LogDebug(CustomLogEvent.ProviderProfile, "Multiple profiles found.");

return TypedResults.Unauthorized();
}
d365Result = currentValue!;
}

Expand Down
10 changes: 0 additions & 10 deletions OFM.Infrastructure.WebAPI/OFM.Infrastructure.WebAPI.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3048,11 +3048,6 @@
Unique identifier for Portal Role associated with Contact.
</summary>
</member>
<member name="P:ECC.Core.DataContext.Contact.ofm_protam">
<summary>
For ofm contact migration
</summary>
</member>
<member name="P:ECC.Core.DataContext.Contact.onholdtime">
<summary>
Shows how long, in minutes, that the record was on hold.
Expand Down Expand Up @@ -15228,10 +15223,5 @@
September
</summary>
</member>
<member name="T:ECC.Core.DataContext.IntegrationLog_Category">
<summary>
Category for integration log.
</summary>
</member>
</members>
</doc>

0 comments on commit f681a86

Please sign in to comment.