Skip to content

Commit ae11ef3

Browse files
author
Gerald Baulig
committed
fix(resolver): direct access on sub service config
1 parent ed35950 commit ae11ef3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/facade/src/gql/protos/resolvers.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -122,8 +122,8 @@ export const getGQLResolverFunctions =
122122

123123
(obj as any)[methodName] = async (args: any, context: ServiceClient<CTX, keyof CTX, T>) => {
124124
// remap namespace and serviceKey if given
125-
key = (cfg as any)?.[key]?.namespace ?? key;
126-
serviceKey = (cfg as any)?.[key]?.serviceKey ?? serviceKey;
125+
key = (cfg as any)?.namespace ?? key;
126+
serviceKey = (cfg as any)?.serviceKey ?? serviceKey;
127127
const client = context[key].client;
128128
const service = client[serviceKey];
129129
try {

0 commit comments

Comments
 (0)