From 82a7746ff1dd3501edcba544302be7de33dac6ba Mon Sep 17 00:00:00 2001 From: Richard Tibbles Date: Thu, 22 Aug 2024 17:05:11 -0700 Subject: [PATCH] Fixes frontend to properly call invitation accept endpoint. --- .../contentcuration/frontend/shared/data/resources.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contentcuration/contentcuration/frontend/shared/data/resources.js b/contentcuration/contentcuration/frontend/shared/data/resources.js index 1c684ee07a..dccc4bd0c4 100644 --- a/contentcuration/contentcuration/frontend/shared/data/resources.js +++ b/contentcuration/contentcuration/frontend/shared/data/resources.js @@ -1895,7 +1895,7 @@ export const Invitation = new Resource({ accept(id) { const changes = { accepted: true }; - return client.patch(window.Urls.invitationDetail(id), changes).then(() => { + return client.post(window.Urls.invitationAccept(id), changes).then(() => { return this.transaction({ mode: 'rw' }, () => { return this.table.update(id, changes); });