Skip to content

Commit

Permalink
Make respond to invite have a consistent result.
Browse files Browse the repository at this point in the history
  • Loading branch information
wparad committed Nov 5, 2024
1 parent 7b64aea commit a1477da
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions src/Authress.SDK/Api/AccessRecordsApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ public async Task<Invite> CreateInvite(Invite body)
/// </summary>
/// <param name="inviteId">The identifier of the invite.</param>
/// <returns>Account</returns>
public async Task<Account> RespondToInvite(string inviteId)
public async Task RespondToInvite(string inviteId)
{
if (inviteId == null) throw new ArgumentNullException("Missing required parameter 'inviteId'.");

Expand All @@ -281,7 +281,6 @@ public async Task<Account> RespondToInvite(string inviteId)
using (var response = await client.PatchAsync(path, new Invite().ToHttpContent()))
{
await response.ThrowIfNotSuccessStatusCode();
return await response.Content.ReadAsAsync<Account>();
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/Authress.SDK/Api/IAccessRecordsApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ public interface IAccessRecordsApi
/// </remarks>
/// <param name="inviteId">The identifier of the invite.</param>
/// <returns>Account</returns>
Task<Account> RespondToInvite (string inviteId);
Task RespondToInvite (string inviteId);

/// <summary>
/// Delete invite
Expand Down

0 comments on commit a1477da

Please sign in to comment.