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
1 changed files with 1 additions and 1 deletions

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,