Skip to content

Commit

Permalink
fix(middleware-endpoint-discovery): assert clientName and `commandN…
Browse files Browse the repository at this point in the history
…ame` in `context`
  • Loading branch information
syall committed Sep 20, 2023
1 parent 3a72385 commit 8faf7d1
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ export const endpointDiscoveryMiddleware =

const { endpointDiscoveryCommandCtor } = config;
const { isDiscoveredEndpointRequired, identifiers } = middlewareConfig;
const { clientName, commandName } = context;
const clientName = context.clientName!;
const commandName = context.commandName!;
const isEndpointDiscoveryEnabled = await config.endpointDiscoveryEnabled();
const cacheKey = await getCacheKey(commandName, config, { identifiers });

Expand Down

0 comments on commit 8faf7d1

Please sign in to comment.