Fix updating nodes: Use new $http API.

This commit is contained in:
baldo 2019-04-28 22:55:10 +02:00
parent 351e95c818
commit 5754250c0d

View file

@ -14,8 +14,8 @@ angular.module('ffffng')
$scope.onSubmitToken = function (token) {
$scope.token = token;
return NodeService.getNode(token)
.success(function (node) {
$scope.node = node;
.then(function (response) {
$scope.node = response.data;
});
};