From 37c865687b64866b9295e5a3347e5747853db937 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Se=CC=81rgio=20Ramos?= Date: Wed, 4 Oct 2017 18:27:03 +0100 Subject: [PATCH] feat(cloudapi-gql): resolve Machine package --- packages/cloudapi-gql/src/schema/resolvers.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/cloudapi-gql/src/schema/resolvers.js b/packages/cloudapi-gql/src/schema/resolvers.js index 1dfaf9ab..e6c0462b 100644 --- a/packages/cloudapi-gql/src/schema/resolvers.js +++ b/packages/cloudapi-gql/src/schema/resolvers.js @@ -115,7 +115,7 @@ const resolvers = { networks: ({ networks }) => Promise.all(networks.map(id => resolvers.Query.network(null, { id }))), // eslint-disable-next-line camelcase - package: (root) => resolvers.Query.package(null, { name: root.package }), + package: root => resolvers.Query.package(null, { name: root.package }), snapshots: ({ id }, { name }) => resolvers.Query.snapshots(null, { machine: id, name }), // eslint-disable-next-line camelcase