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(); }); });