From a1477da7b9ff9d57d0bf5fdc4c5e8f38a6e0a466 Mon Sep 17 00:00:00 2001 From: Warren Parad Date: Tue, 5 Nov 2024 10:35:49 +0100 Subject: [PATCH] Make respond to invite have a consistent result. --- src/Authress.SDK/Api/AccessRecordsApi.cs | 3 +-- src/Authress.SDK/Api/IAccessRecordsApi.cs | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/Authress.SDK/Api/AccessRecordsApi.cs b/src/Authress.SDK/Api/AccessRecordsApi.cs index 069d26e..b7ab0e1 100644 --- a/src/Authress.SDK/Api/AccessRecordsApi.cs +++ b/src/Authress.SDK/Api/AccessRecordsApi.cs @@ -272,7 +272,7 @@ public async Task CreateInvite(Invite body) /// /// The identifier of the invite. /// Account - public async Task RespondToInvite(string inviteId) + public async Task RespondToInvite(string inviteId) { if (inviteId == null) throw new ArgumentNullException("Missing required parameter 'inviteId'."); @@ -281,7 +281,6 @@ public async Task RespondToInvite(string inviteId) using (var response = await client.PatchAsync(path, new Invite().ToHttpContent())) { await response.ThrowIfNotSuccessStatusCode(); - return await response.Content.ReadAsAsync(); } } diff --git a/src/Authress.SDK/Api/IAccessRecordsApi.cs b/src/Authress.SDK/Api/IAccessRecordsApi.cs index 34e7501..f9fc593 100644 --- a/src/Authress.SDK/Api/IAccessRecordsApi.cs +++ b/src/Authress.SDK/Api/IAccessRecordsApi.cs @@ -130,7 +130,7 @@ public interface IAccessRecordsApi /// /// The identifier of the invite. /// Account - Task RespondToInvite (string inviteId); + Task RespondToInvite (string inviteId); /// /// Delete invite