mirror of
https://github.com/taobataoma/meanTorrent.git
synced 2026-05-13 01:06:21 +02:00
fix(users): Incorrect UsersService injection (#1283)
* fix bug in edit profile controller. * fix(users): Incorrect UsersService injection
This commit is contained in:
committed by
Michael Leanos
parent
4906611ccc
commit
5137214972
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user