Adjust to new autoupdate pattern rest apis

This commit is contained in:
Johannes Zellner
2018-02-06 19:23:52 +01:00
parent d7334b991b
commit c543d4517f
2 changed files with 25 additions and 11 deletions

View File

@@ -540,7 +540,7 @@ angular.module('Application').controller('SettingsController', ['$scope', '$loca
$scope.autoUpdate.busy = true;
$scope.autoUpdate.success = false;
Client.setAutoupdatePattern($scope.autoUpdate.pattern, function (error) {
Client.setAppAutoupdatePattern($scope.autoUpdate.pattern, function (error) {
if (error) $scope.autoUpdate.error = error.message;
else $scope.autoUpdate.currentPattern = $scope.autoUpdate.pattern;
@@ -581,7 +581,7 @@ angular.module('Application').controller('SettingsController', ['$scope', '$loca
}
function getAutoupdatePattern() {
Client.getAutoupdatePattern(function (error, result) {
Client.getAppAutoupdatePattern(function (error, result) {
if (error) return console.error(error);
$scope.autoUpdate.currentPattern = result.pattern;