Skip to content

Commit

Permalink
fix(facade): config is object
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerald Baulig committed Aug 14, 2024
1 parent 8f418a8 commit ed35950
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/facade/src/gql/protos/resolvers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,8 @@ export const getGQLResolverFunctions =

(obj as any)[methodName] = async (args: any, context: ServiceClient<CTX, keyof CTX, T>) => {
// remap namespace and serviceKey if given
key = cfg.get(key)?.namespace ?? key;
serviceKey = cfg.get(key)?.serviceKey ?? serviceKey;
key = (cfg as any)?.[key]?.namespace ?? key;
serviceKey = (cfg as any)?.[key]?.serviceKey ?? serviceKey;
const client = context[key].client;
const service = client[serviceKey];
try {
Expand Down

0 comments on commit ed35950

Please sign in to comment.