From 1f70b2a41be7d74e13db862b9bd17751c147363a Mon Sep 17 00:00:00 2001 From: apronotti Date: Fri, 1 Mar 2019 17:58:29 -0300 Subject: [PATCH] Add LogsModule settings. --- client/src/App.js | 5 +++++ server/src/index.js | 9 ++++++++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/client/src/App.js b/client/src/App.js index 555fdee93..3a4e95f43 100644 --- a/client/src/App.js +++ b/client/src/App.js @@ -20,6 +20,7 @@ import Events from '@superalgos/events-client' import KeyVault from '@superalgos/key-vault-client' import FinancialBeings from '@advancedalgos/financial-beings-client' import Operations from '@superalgos/operations-client' +import Logs from '@superalgos/logs-client' export const auth = new Auth( result => console.log('Authentication successful.'), @@ -81,6 +82,10 @@ export const MasterApp = props => ( path='/clones' render={props => } /> + } + /> diff --git a/server/src/index.js b/server/src/index.js index bd6369e97..425989969 100644 --- a/server/src/index.js +++ b/server/src/index.js @@ -70,6 +70,10 @@ async function run () { 'notifications_', process.env.NOTIFICATIONS_API_URL, process.env.NOTIFICATIONS_API_PRESHARED) + const transformedLogsSchema = await createTransformedRemoteSchema( + 'logs_', + process.env.LOGS_API_URL, + process.env.LOGS_API_PRESHARED) var schemas = [] var resolvers = {} @@ -107,7 +111,10 @@ async function run () { if (transformedNotificationsSchema) { schemas.push(transformedNotificationsSchema) } - + if (transformedLogsSchema) { + schemas.push(transformedLogsSchema) + } + const schema = mergeSchemas({ schemas, resolvers