From 39e2df70b7b592ed22c9dff493d138b40b9d6b0e Mon Sep 17 00:00:00 2001 From: Florian Schade Date: Tue, 3 Sep 2024 18:02:58 +0200 Subject: [PATCH] bugfix(ocm): fix invitation JSON body --- changelog/unreleased/bugfix-ocm-invite-body | 6 ++++++ packages/web-app-ocm/src/views/OutgoingInvitations.vue | 7 ++----- 2 files changed, 8 insertions(+), 5 deletions(-) create mode 100644 changelog/unreleased/bugfix-ocm-invite-body diff --git a/changelog/unreleased/bugfix-ocm-invite-body b/changelog/unreleased/bugfix-ocm-invite-body new file mode 100644 index 00000000000..efad8ded20c --- /dev/null +++ b/changelog/unreleased/bugfix-ocm-invite-body @@ -0,0 +1,6 @@ +Bugfix: OCM invite generation body format + +We've fixed the issue where the body of the OCM invite generation was not formatted correctly. + +https://github.com/owncloud/web/pull/11512 +https://github.com/owncloud/ocis/issues/9583 diff --git a/packages/web-app-ocm/src/views/OutgoingInvitations.vue b/packages/web-app-ocm/src/views/OutgoingInvitations.vue index fd4fff50056..56035bd3db7 100644 --- a/packages/web-app-ocm/src/views/OutgoingInvitations.vue +++ b/packages/web-app-ocm/src/views/OutgoingInvitations.vue @@ -202,15 +202,12 @@ export default defineComponent({ if (unref(descriptionErrorMessage)) { return } - try { const { data: tokenInfo } = await clientService.httpAuthenticated.post( '/sciencemesh/generate-invite', { - params: { - ...(description && { description }), - ...(recipient && { recipient }) - } + ...(description && { description }), + ...(recipient && { recipient }) }, { schema: inviteSchema