Use profile route to update the display name

This commit is contained in:
Girish Ramakrishnan
2016-09-28 15:50:15 -07:00
parent 2ea772b862
commit 90aeeb3896
+1 -2
View File
@@ -135,11 +135,10 @@ angular.module('Application').controller('AccountController', ['$scope', 'Client
$scope.displayNameChange.busy = true; $scope.displayNameChange.busy = true;
var user = { var user = {
id: $scope.user.id,
displayName: $scope.displayNameChange.displayName displayName: $scope.displayNameChange.displayName
}; };
Client.updateUser(user, function (error) { Client.updateProfile(user, function (error) {
$scope.displayNameChange.busy = false; $scope.displayNameChange.busy = false;
if (error) { if (error) {