rename getService to getServiceStatus

This commit is contained in:
Girish Ramakrishnan
2021-01-21 12:40:41 -08:00
parent d294dea84d
commit 47a598a494
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -26,7 +26,7 @@ function getAll(req, res, next) {
function get(req, res, next) {
assert.strictEqual(typeof req.params.service, 'string');
services.getService(req.params.service, function (error, result) {
services.getServiceStatus(req.params.service, function (error, result) {
if (error) return next(BoxError.toHttpError(error));
next(new HttpSuccess(200, { service: result }));
+2 -2
View File
@@ -2,7 +2,7 @@
exports = module.exports = {
getServiceIds,
getService,
getServiceStatus,
getServiceConfig,
configureService,
getServiceLogs,
@@ -385,7 +385,7 @@ function getServiceConfig(id, callback) {
});
}
function getService(id, callback) {
function getServiceStatus(id, callback) {
assert.strictEqual(typeof id, 'string');
assert.strictEqual(typeof callback, 'function');