1
0
mirror of https://github.com/yldio/copilot.git synced 2024-11-30 23:20:06 +02:00

fix(cp-gql-mock-server): return object for deploymentGroup()

This commit is contained in:
Sérgio Ramos 2017-06-16 13:41:30 +01:00
parent 66c7e2d444
commit 03e19d4a6a

View File

@ -103,7 +103,7 @@ const createServicesFromManifest = ({ deploymentGroupId, raw }) => {
module.exports = { module.exports = {
portal: getPortal, portal: getPortal,
deploymentGroups: getDeploymentGroups, deploymentGroups: getDeploymentGroups,
deploymentGroup: query => getDeploymentGroups(query), deploymentGroup: query => getDeploymentGroups(query).then(dgs => dgs.shift()),
services: getServices, services: getServices,
service: query => getServices(query).then(services => services.shift()), service: query => getServices(query).then(services => services.shift()),
instances: getInstances, instances: getInstances,