Skip to content

Commit

Permalink
Updated PersonsAPI nuget package to v1.1.0
Browse files Browse the repository at this point in the history
(#update package version to 1.1.0)
  • Loading branch information
FrostyApeOne committed Sep 20, 2024
1 parent 62c3e03 commit 55714a6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Dfe.PersonsApi.Client/Security/TokenAcquisitionService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public TokenAcquisitionService(PersonsApiClientSettings settings)

public async Task<string> GetTokenAsync()
{
// Check if the current token is about to expire
// Check if the current token is about to expire.
if (_authResult == null || _authResult.ExpiresOn <= DateTimeOffset.UtcNow.AddMinutes(-1))
{
_authResult = await _app.AcquireTokenForClient(new[] { _settings.Scope })
Expand Down
4 changes: 2 additions & 2 deletions PersonsApi/Controllers/ConstituenciesController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public class ConstituenciesController(ISender sender) : ControllerBase
/// <summary>
/// Retrieve Member of Parliament by constituency name
/// </summary>
/// <param name="constituencyName">The constituency name.</param>
/// <param name="constituencyName">The constituency name. </param>
/// <param name="cancellationToken">The cancellation token.</param>
[HttpGet("{constituencyName}/mp")]
[SwaggerResponse(200, "A Person object representing the Member of Parliament.", typeof(MemberOfParliament))]
Expand All @@ -33,7 +33,7 @@ public async Task<IActionResult> GetMemberOfParliamentByConstituencyAsync([FromR
/// <summary>
/// Retrieve a collection of Member of Parliament by a collection of constituency names
/// </summary>
/// <param name="request">The request.</param>
/// <param name="request">The request. </param>
/// <param name="cancellationToken">The cancellation token.</param>
[HttpPost("mps")]
[SwaggerResponse(200, "A collection of MemberOfParliament objects.", typeof(IEnumerable<MemberOfParliament>))]
Expand Down

0 comments on commit 55714a6

Please sign in to comment.