Skip to content

Commit a1477da

Browse files
committed
Make respond to invite have a consistent result.
1 parent 7b64aea commit a1477da

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/Authress.SDK/Api/AccessRecordsApi.cs

+1-2
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ public async Task<Invite> CreateInvite(Invite body)
272272
/// </summary>
273273
/// <param name="inviteId">The identifier of the invite.</param>
274274
/// <returns>Account</returns>
275-
public async Task<Account> RespondToInvite(string inviteId)
275+
public async Task RespondToInvite(string inviteId)
276276
{
277277
if (inviteId == null) throw new ArgumentNullException("Missing required parameter 'inviteId'.");
278278

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

src/Authress.SDK/Api/IAccessRecordsApi.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ public interface IAccessRecordsApi
130130
/// </remarks>
131131
/// <param name="inviteId">The identifier of the invite.</param>
132132
/// <returns>Account</returns>
133-
Task<Account> RespondToInvite (string inviteId);
133+
Task RespondToInvite (string inviteId);
134134

135135
/// <summary>
136136
/// Delete invite

0 commit comments

Comments
 (0)