Return promise from join.then()

This commit is contained in:
Andrei Prigorshnev
2021-07-21 18:59:02 +04:00
parent 9c6f1d460e
commit bda84d8d80

View File

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