rebuild if service not found

This commit is contained in:
Girish Ramakrishnan
2021-01-21 17:41:16 -08:00
parent 1c5d56c28f
commit ed395d74bc
2 changed files with 19 additions and 0 deletions

View File

@@ -1269,6 +1269,15 @@ angular.module('Application').service('Client', ['$http', '$interval', '$timeout
});
};
Client.prototype.rebuildService = function (serviceName, callback) {
post('/api/v1/services/' + serviceName + '/rebuild', {}, null, function (error, data, status) {
if (error) return callback(error);
if (status !== 202) return callback(new ClientError(status, data));
callback(null);
});
};
Client.prototype.getUsers = function (search, page, perPage, callback) {
if (typeof search === 'function') {
callback = search;