Skip to content

Commit 66f955c

Browse files
authored
Merge pull request #4673 from rtibbles/youre_not_on_the_list_youre_not_coming_in
Fixes frontend to properly call invitation accept endpoint.
2 parents bb7a8a8 + 82a7746 commit 66f955c

File tree

1 file changed

+1
-1
lines changed
  • contentcuration/contentcuration/frontend/shared/data

1 file changed

+1
-1
lines changed

contentcuration/contentcuration/frontend/shared/data/resources.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1934,7 +1934,7 @@ export const Invitation = new Resource({
19341934

19351935
accept(id) {
19361936
const changes = { accepted: true };
1937-
return client.patch(window.Urls.invitationDetail(id), changes).then(() => {
1937+
return client.post(window.Urls.invitationAccept(id), changes).then(() => {
19381938
return this.transaction({ mode: 'rw' }, () => {
19391939
return this.table.update(id, changes);
19401940
});

0 commit comments

Comments
 (0)