feat(cloudapi-gql): resolve Machine package

This commit is contained in:
Sérgio Ramos 2017-10-04 18:27:03 +01:00 committed by Sérgio Ramos
parent e3dbb9086c
commit 37c865687b

View File

@ -115,7 +115,7 @@ const resolvers = {
networks: ({ networks }) => networks: ({ networks }) =>
Promise.all(networks.map(id => resolvers.Query.network(null, { id }))), Promise.all(networks.map(id => resolvers.Query.network(null, { id }))),
// eslint-disable-next-line camelcase // 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 }) => snapshots: ({ id }, { name }) =>
resolvers.Query.snapshots(null, { machine: id, name }), resolvers.Query.snapshots(null, { machine: id, name }),
// eslint-disable-next-line camelcase // eslint-disable-next-line camelcase