Add LogsModule settings.

This commit is contained in:
apronotti committed 2019-03-01 17:58:29 -03:00
1 parent d86bd63b4e
commit 1f70b2a41b
2 files changed
+13 -1

No files matched your search

+8 -1
View File
@@ -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