Return promise from join.then()

This commit is contained in:
Andrei Prigorshnev 2021-07-21 18:59:02 +04:00
parent 9c6f1d460e
commit bda84d8d80
No known key found for this signature in database
GPG Key ID: 185E0A5F45783902
1 changed files with 1 additions and 3 deletions

View File

@ -130,9 +130,7 @@ const Group = RestModel.extend({
join() { join() {
return ajax(`/groups/${this.id}/join.json`, { return ajax(`/groups/${this.id}/join.json`, {
type: "PUT", type: "PUT",
}).then(() => { }).then(() => this.findMembers());
this.findMembers();
});
}, },
addOwners(usernames, filter, notifyUsers) { addOwners(usernames, filter, notifyUsers) {