rename getServiceIds to listServices

This commit is contained in:
Girish Ramakrishnan
2021-09-20 09:15:28 -07:00
parent 5a1a439224
commit e2fc785e80
3 changed files with 6 additions and 6 deletions
+3 -3
View File
@@ -1,7 +1,7 @@
'use strict';
exports = module.exports = {
getAll,
list,
get,
configure,
getLogs,
@@ -17,8 +17,8 @@ const assert = require('assert'),
safe = require('safetydance'),
services = require('../services.js');
async function getAll(req, res, next) {
const [error, result] = await safe(services.getServiceIds());
async function list(req, res, next) {
const [error, result] = await safe(services.listServices());
if (error) return next(BoxError.toHttpError(error));
next(new HttpSuccess(200, { services: result }));