mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
Return promise from join.then()
This commit is contained in:
parent
9c6f1d460e
commit
bda84d8d80
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user