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` (#5232)
  • Loading branch information
Steven Yuan authored Sep 20, 2023
1 parent 3a72385 commit 5c17a3f
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 5c17a3f

Please sign in to comment.