pass domain argument to cloudron.migrate

This commit is contained in:
Girish Ramakrishnan
2016-07-01 19:20:47 -05:00
parent bfd92bf7ed
commit 55e2043eca
2 changed files with 5 additions and 4 deletions

View File

@@ -120,7 +120,7 @@ function migrate(req, res, next) {
debug('Migration requested', req.body.size, req.body.region);
cloudron.migrate(req.body.size, req.body.region, function (error) {
cloudron.migrate(config.fqdn(), req.body.size, req.body.region, function (error) {
if (error && error.reason === CloudronError.BAD_STATE) return next(new HttpError(409, error.message));
if (error) return next(new HttpError(500, error));