Skip to content

Commit 830c596

Browse files
committed
refactor(admin:conroller): use User.query
keep parity with JS file
1 parent 645e7fc commit 830c596

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

app/templates/client/app/admin(auth)/admin.controller(coffee).coffee

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,7 @@
33
angular.module '<%= scriptAppName %>'
44
.controller 'AdminCtrl', ($scope, $http, Auth, User) ->
55

6-
$http.get '/api/users'
7-
.success (users) ->
8-
$scope.users = users
6+
$scope.users = User.query
97

108
$scope.delete = (user) ->
119
User.remove id: user._id

0 commit comments

Comments
 (0)