Skip to content
This repository was archived by the owner on Aug 30, 2021. It is now read-only.

Commit 5137214

Browse files
t-jenningsmleanos
authored andcommitted
fix(users): Incorrect UsersService injection (#1283)
* fix bug in edit profile controller. * fix(users): Incorrect UsersService injection
1 parent 4906611 commit 5137214

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

modules/users/client/controllers/settings/edit-profile.client.controller.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
.module('users')
66
.controller('EditProfileController', EditProfileController);
77

8-
EditProfileController.$inject = ['$scope', '$http', '$location', 'Users', 'Authentication'];
8+
EditProfileController.$inject = ['$scope', '$http', '$location', 'UsersService', 'Authentication'];
99

10-
function EditProfileController($scope, $http, $location, Users, Authentication) {
10+
function EditProfileController($scope, $http, $location, UsersService, Authentication) {
1111
var vm = this;
1212

1313
vm.user = Authentication.user;
@@ -23,7 +23,7 @@
2323
return false;
2424
}
2525

26-
var user = new Users(vm.user);
26+
var user = new UsersService(vm.user);
2727

2828
user.$update(function (response) {
2929
$scope.$broadcast('show-errors-reset', 'vm.userForm');

0 commit comments

Comments
 (0)