1
0
mirror of https://github.com/yldio/copilot.git synced 2024-11-28 06:00: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 = {
portal: getPortal,
deploymentGroups: getDeploymentGroups,
deploymentGroup: query => getDeploymentGroups(query),
deploymentGroup: query => getDeploymentGroups(query).then(dgs => dgs.shift()),
services: getServices,
service: query => getServices(query).then(services => services.shift()),
instances: getInstances,