Fix typo to actually restart an app

This commit is contained in:
Johannes Zellner
2020-01-06 16:38:48 +01:00
parent c548f572df
commit f07e0bf967
+1 -1
View File
@@ -556,7 +556,7 @@ angular.module('Application').service('Client', ['$http', '$interval', '$timeout
};
Client.prototype.restartApp = function (id, callback) {
post('/api/v1/apps/' + id + '/start', {}, null, function (error, data, status) {
post('/api/v1/apps/' + id + '/restart', {}, null, function (error, data, status) {
if (error) return callback(error);
if (status !== 202) return callback(new ClientError(status, data));