Fix embarrassing typo which broke update

This commit is contained in:
Johannes Zellner
2015-02-27 17:05:26 +01:00
parent c5aeffafc0
commit d45b2beea6
3 changed files with 5 additions and 5 deletions
+2 -2
View File
File diff suppressed because one or more lines are too long
+2 -2
View File
File diff suppressed because one or more lines are too long
+1 -1
View File
@@ -300,7 +300,7 @@ angular.module('Application').service('Client', ['$http', 'md5', function ($http
};
Client.prototype.update = function (password, callback) {
$http.post('/api/v1/cloudron/update', { pasword: password }).success(function(data, status) {
$http.post('/api/v1/cloudron/update', { password: password }).success(function(data, status) {
if (status !== 202 || typeof data !== 'object') return callback(new ClientError(status, data));
callback(null, data);
}).error(defaultErrorHandler(callback));