From 51372149726c4fcfbfd5f67da3616adcf86ab604 Mon Sep 17 00:00:00 2001 From: Trevor Jennings Date: Fri, 29 Apr 2016 17:20:03 -0400 Subject: [PATCH] fix(users): Incorrect UsersService injection (#1283) * fix bug in edit profile controller. * fix(users): Incorrect UsersService injection --- .../controllers/settings/edit-profile.client.controller.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/users/client/controllers/settings/edit-profile.client.controller.js b/modules/users/client/controllers/settings/edit-profile.client.controller.js index 739146b0..1a1d3ee4 100644 --- a/modules/users/client/controllers/settings/edit-profile.client.controller.js +++ b/modules/users/client/controllers/settings/edit-profile.client.controller.js @@ -5,9 +5,9 @@ .module('users') .controller('EditProfileController', EditProfileController); - EditProfileController.$inject = ['$scope', '$http', '$location', 'Users', 'Authentication']; + EditProfileController.$inject = ['$scope', '$http', '$location', 'UsersService', 'Authentication']; - function EditProfileController($scope, $http, $location, Users, Authentication) { + function EditProfileController($scope, $http, $location, UsersService, Authentication) { var vm = this; vm.user = Authentication.user; @@ -23,7 +23,7 @@ return false; } - var user = new Users(vm.user); + var user = new UsersService(vm.user); user.$update(function (response) { $scope.$broadcast('show-errors-reset', 'vm.userForm');