fix typos

This commit is contained in:
Girish Ramakrishnan 2016-07-08 15:36:54 -07:00
parent ab56cd0475
commit 2e776d5e88
1 changed files with 3 additions and 1 deletions

View File

@ -23,7 +23,7 @@ process.env.NODE_TLS_REJECT_UNAUTHORIZED = '0';
function Cloudron(box) {
this._box = box;
this.setDomain(box.domain);
this._setDomain(box.domain);
this._credentials = {
password: null,
@ -410,6 +410,8 @@ Cloudron.prototype.reboot = function () {
};
Cloudron.prototype.migrate = function (options) {
options.password = this._credentials.password;
var res = request.post(this._origin + '/api/v1/cloudron/migrate')
.query({ access_token: this._credentials.accessToken })
.send(options)