rebuild if service not found
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user