FIX: Adding group owners returns 400 error.

This commit is contained in:
Guo Xiang Tan 2017-08-02 19:18:41 +09:00
parent e43799134c
commit 1c80c233cf
1 changed files with 2 additions and 2 deletions

View File

@ -85,9 +85,9 @@ const Group = RestModel.extend({
addOwners(usernames) { addOwners(usernames) {
var self = this; var self = this;
return ajax('/admin/groups/' + this.get('id') + '/owners.json', { return ajax(`/admin/groups/${this.get('id')}/owners.json`, {
type: "PUT", type: "PUT",
data: { usernames: usernames } data: { group: { usernames: usernames } }
}).then(function() { }).then(function() {
self.findMembers(); self.findMembers();
}); });