Skip to content

Commit

Permalink
refactor(resolver): no need to convert config to any
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerald Baulig committed Aug 14, 2024
1 parent ae11ef3 commit 213b2a1
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 as any)?.namespace ?? key;
serviceKey = (cfg as any)?.serviceKey ?? serviceKey;
key = cfg?.namespace ?? key;
serviceKey = cfg?.serviceKey ?? serviceKey;
const client = context[key].client;
const service = client[serviceKey];
try {
Expand Down

0 comments on commit 213b2a1

Please sign in to comment.