Return promise from join.then()
This commit is contained in:
parent
9c6f1d460e
commit
bda84d8d80
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue