From 67fce15b98f35563168b25a8093f2f5c35f8714e Mon Sep 17 00:00:00 2001 From: Gerald Baulig Date: Wed, 21 Aug 2024 16:20:51 +0200 Subject: [PATCH] fix(facade): rename configs of resource to master_data, namespace remapping not required! --- packages/facade/src/modules/master_data/index.ts | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/packages/facade/src/modules/master_data/index.ts b/packages/facade/src/modules/master_data/index.ts index 4be29088..d67b580a 100644 --- a/packages/facade/src/modules/master_data/index.ts +++ b/packages/facade/src/modules/master_data/index.ts @@ -5,10 +5,13 @@ import { createFacadeModuleFactory } from '../../utils.js'; export const resourceModule = createFacadeModuleFactory(namespace, (facade, config) => { const resource = { - client: new ResourceSrvGrpcClient(config.config.client.address, { - ...config.config.client, - logger: facade.logger, - }) + client: new ResourceSrvGrpcClient( + config.config.client.address, + { + ...config.config.client, + logger: facade.logger, + } + ) }; facade.addApolloService({ @@ -17,7 +20,7 @@ export const resourceModule = createFacadeModuleFactory { - ctx.resource = resource; + ctx.master_data = resource; await next(); }); });