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

Commit

Permalink
fix(users): Incorrect UsersService injection (#1283)
Browse files Browse the repository at this point in the history
* fix bug in edit profile controller.

* fix(users): Incorrect UsersService injection
  • Loading branch information
t-jennings authored and mleanos committed Apr 29, 2016
1 parent 4906611 commit 5137214
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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');
Expand Down

1 comment on commit 5137214

@dhagan
Copy link

@dhagan dhagan commented on 5137214 May 9, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for for making this fix, saved me!

Please sign in to comment.