caas: migrate -> change_plan
This commit is contained in:
@@ -828,11 +828,11 @@ angular.module('Application').service('Client', ['$http', 'md5', 'Notification',
|
||||
}).error(defaultErrorHandler(callback));
|
||||
};
|
||||
|
||||
Client.prototype.migrate = function (options, password, callback) {
|
||||
Client.prototype.changePlan = function (options, password, callback) {
|
||||
var data = options;
|
||||
data.password = password;
|
||||
|
||||
post('/api/v1/caas/migrate', data).success(function(data, status) {
|
||||
post('/api/v1/caas/change_plan', data).success(function(data, status) {
|
||||
if (status !== 202 || typeof data !== 'object') return callback(new ClientError(status, data));
|
||||
callback(null, data);
|
||||
}).error(defaultErrorHandler(callback));
|
||||
|
||||
@@ -96,7 +96,7 @@ angular.module('Application').controller('SettingsController', ['$scope', '$loca
|
||||
region: $scope.currentRegionSlug
|
||||
};
|
||||
|
||||
Client.migrate(options, $scope.planChange.password, function (error) {
|
||||
Client.changePlan(options, $scope.planChange.password, function (error) {
|
||||
$scope.planChange.busy = false;
|
||||
|
||||
if (error) {
|
||||
|
||||
Reference in New Issue
Block a user