From 5754250c0d5da83b93ba4854916213b0d496ca7e Mon Sep 17 00:00:00 2001 From: baldo Date: Sun, 28 Apr 2019 22:55:10 +0200 Subject: [PATCH] Fix updating nodes: Use new $http API. --- app/scripts/controllers/updateNodeCtrl.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/scripts/controllers/updateNodeCtrl.js b/app/scripts/controllers/updateNodeCtrl.js index 44b825d..547e585 100644 --- a/app/scripts/controllers/updateNodeCtrl.js +++ b/app/scripts/controllers/updateNodeCtrl.js @@ -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; }); };