fix alias api usage

This commit is contained in:
Girish Ramakrishnan 2016-09-28 19:13:20 -07:00
parent 403de89eae
commit a4bdeb9cde

View File

@ -354,7 +354,7 @@ Cloudron.prototype.addUser = function (username, email) {
};
Cloudron.prototype.setAliases = function (owner, aliases) {
var res = request.put(this._origin + '/api/v1/mailboxes/' + owner.username + '/aliases')
var res = request.put(this._origin + '/api/v1/users/' + owner.id + '/aliases')
.query({ access_token: this._credentials.accessToken })
.send({ aliases: aliases })
.end();