From 03e19d4a6a71e6a3cb8d3907067269cef5bc98bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Se=CC=81rgio=20Ramos?= Date: Fri, 16 Jun 2017 13:41:30 +0100 Subject: [PATCH] fix(cp-gql-mock-server): return object for deploymentGroup() --- packages/cp-gql-mock-server/src/resolvers.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/cp-gql-mock-server/src/resolvers.js b/packages/cp-gql-mock-server/src/resolvers.js index 8a82be11..9f9548f3 100644 --- a/packages/cp-gql-mock-server/src/resolvers.js +++ b/packages/cp-gql-mock-server/src/resolvers.js @@ -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,